Category «AnjularJS»

.parent() in JQuery

  Description: Get the parent of each element in the current set of matched elements, optionally filtered by a selector. version added: 1.0.parent( [ selector ] ) selectorA string containing a selector expression to match elements against. Given a jQuery object that represents a set of DOM elements, the .parent() method allows us to search …

.prev() in JQuery

  Description: Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector. version added: 1.0.prev( [ selector ] ) selectorA string containing a selector expression to match elements against. Given a jQuery object that represents a set of DOM elements, the .prev() method allows us to …

.parentsUntil() in JQuery

.parentsUntil() – jQuery API Description: Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector. version added: 1.4.parentsUntil( [ selector ] ) selectorA string containing a selector expression to indicate where to stop matching ancestor elements. Given a jQuery object that …

.map() in JQuery

  .map( callback(index, domElement) ) Returns: jQuery Description: Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.. version added: 1.2.map( callback(index, domElement) ) callback(index, domElement)A function object that will be invoked for each element in the current set. The .map() method is particularly useful …

.has() in JQuery

  Description: Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. version added: 1.4.has( selector ) selectorA string containing a selector expression to match elements against. version added: 1.4.has( contained ) containedA DOM element to match elements against. Given a jQuery object that represents a …

.next() in JQuery

  Description: Get the immediately following sibling of each element in the set of matched elements, optionally filtered by a selector. version added: 1.0.next( [ selector ] ) selectorA string containing a selector expression to match elements against. Given a jQuery object that represents a set of DOM elements, the .next() method allows us to …

.eq() in JQuery

  Description: Reduce the set of matched elements to the one at the specified index. version added: 1.1.2.eq( index ) indexAn integer indicating the 0-based position of the element. Given a jQuery object that represents a set of DOM elements, the .eq() method constructs a new jQuery object from one of the matching elements. The …

.first() in JQuery

  Description: Reduce the set of matched elements to the first in the set. version added: 1.2.first() Given a jQuery object that represents a set of DOM elements, the .first() method constructs a new jQuery object from the first matching element. Consider a page with a simple list on it: <ul> <li>list item 1</li> <li>list …

.end() in JQuery

  Description: End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. version added: 1.0.end() Most of the methods in this chapter operate on a jQuery object and produce a new one, matching a different set of DOM elements. When this happens, it is …

.nextAll() in JQuery

  Description: Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. version added: 1.2.nextAll( [ selector ] ) selectorA string containing a selector expression to match elements against. Given a jQuery object that represents a set of DOM elements, the .nextAll() method allows us to search …