JQuery Child Filters

Child filters are one type of filters among 6 different types of filters That provide by JQuery. Please refer this post for details about other JQuery Filters.

With JQuery child filters you can refine by examining the relationship each element has with its parent elements.

Here is the list of usage of child filters.



Filter Purpose
:nth-child(index)
:nth-child(even)
:nth-child(odd)
:nth-child(equation)
Matches elements at index, or even or odd increments, or who match an equation of the form
Xn+M (for example, 2n or 3n+1)
:first-child matches who are the first child of their parent
:last-child matches who are the last child of their parent
:only-child matches who are the only child of their parent

Examples can be found from this link

No comments:

Post a Comment