JQuery

jQuery filter-nextAll( [expr] )

jQuery filter-nextAll( [expr] ), someone asked me to explain?

Overview

Find all the sibling elements after the current element.

Can be filtered with expressions

parameter

expr String V1.2

The expression used to filter

Example

description:

Add a class to all elements after the first div

HTML code:
 <div></div><div></div><div></div><div></div>
jQuery code:
$("div:first").nextAll().addClass("after");
result:
[ <div class="after"></div>, <div class="after"></div>, <div class="after"></div> ]

 

 

 

 

Post your comments / questions