Skip to main content

.next()

Variations

.next(): DoMini

Gets the subsequent elements (Dominified) for the selected elements

console.log( 'Next: ', $( "div" ).next() );

.next(String selector): DoMini

Gets the subsequent elements (Dominified) matching the selector for the selected elements

console.log( 'Next matching ".next-class": ', $( "div" ).next('.next-class') );