jQuery Referentie Handleiding - Doorlopen
- Vorige pagina jQuery Ajax
- Volgende pagina jQuery data
jQuery traversal functions
jQuery traversal functions include methods for filtering, finding, and chaining elements.
Function | Description |
---|---|
.add() | Adding elements to the set of matching elements. |
.andSelf() | Adding the previous element set in the stack to the current set. |
.children() | Obtaining all child elements of each element in the matching element set. |
.closest() | Starting from the element itself, matching up to the parent elements hierarchically and returning the first matching ancestor element. |
.contents() | Obtaining the child elements of each element in the matching element set, including text and comment nodes. |
.each() | Iterating over jQuery objects, executing a function for each matching element. |
.end() | Ending the most recent filter operation in the current chain and returning the matching element set to the previous state. |
.eq() | Reducing the matching element set to new elements located at the specified index. |
.filter() | Reducing the matching element set to new elements that match the selector or the return value of a matching function. |
.find() | Obtaining the descendants of each element in the current matching element set, filtered by the selector. |
.first() | Reducing the matching element set to the first element in the set. |
.has() | Reducing the matching element set to a set containing only the descendants of specific elements. |
.is() | Checking the current matching element set against the selector; if at least one matching element exists, returns true. |
.last() | Reducing the matching element set to the last element in the set. |
.map() | Passing each element in the current matching set to a function, creating a new jQuery object containing the return values. |
.next() | Obtaining the immediate sibling elements adjacent to each element in the matching element set. |
.nextAll() | Obtaining all sibling elements after each element in the matching element set, filtered by the selector (optional). |
.nextUntil() | Obtaining all sibling elements after each element, until the element matching the selector is encountered. |
.not() | Removing elements from the matching element set. |
.offsetParent() | Obtaining the first parent element used for positioning. |
.parent() | Obtaining the parent elements of each element in the current matching element set, filtered by the selector (optional). |
.parents() | Obtaining the ancestor elements of each element in the current matching element set, filtered by the selector (optional). |
.parentsUntil() | Verkrijg de voorouders van elk element in de huidige overeenkomende elementenverzameling tot het element dat overeenkomt met de selector. |
.prev() | Verkrijg het directe voorgaande leeftijdsgenoot van elk element in de overeenkomende elementenverzameling die zijn gefilterd door een selector (optioneel). |
.prevAll() | Verkrijg alle leeftijdsgenoten van elk element in de overeenkomende elementenverzameling die zijn gefilterd door een selector (optioneel). |
.prevUntil() | Verkrijg alle leeftijdsgenoten van elk element tot het element dat overeenkomt met de selector. |
.siblings() | Verkrijg alle elementen van de overeenkomende elementenverzameling die leeftijdsgenoten zijn, gefilterd door een selector (optioneel). |
.slice() | Verklein de verzameling van overeenkomende elementen tot een subset met een gespecificeerde reeks. |
- Vorige pagina jQuery Ajax
- Volgende pagina jQuery data