Child filters (Should know)
jQuery also has specific filters to target node's children. Here, you'll discover more about them.
Getting ready
The filters belonging to this category are:
Name |
Description |
---|---|
|
Retrieves the elements that are the first child of their parent. |
|
Collects the elements that are the first of the given type (element name). |
|
Retrieves the elements that are the last child of their parent. |
|
Collects the elements that are the last of the given type (element name). |
|
Retrieves all elements that are the nth-child of their parent. |
|
Selects all elements that are the nth-child of their parent, counting from the last element to the first. ... |
Get Instant JQuery Selectors now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.