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