jQuery Find



$("Element").add("Expressions")

Add the elements that match the expression to the jQuery object.This function can be used to concatenate element result sets that match two expressions, respectively.


$("Element").children("Expressions")

The matched sub-elements can be filtered by an optional expression.Note: parents() will find all the ancestor elements, and children() only consider the child elements without regard to all descendant elements.


$("Element").contents()

Represents the child element content of an element


$("Element").find("Expressions")

("Div").find("p") is equivalent to $("div p"), ​​which means searching for a child element below an element,


$("Element").next("Expressions")

Represents a collection of sibling elements behind an element, where peers do not refer to the same element but to all elements under the same layer.


$("Element").nextAll("Expressions")

Means to find all the elements after the current element.You can use expressions to filter


$("Element").prev("Expressions")

Get a collection of elements that contain the elements of the previous sibling immediately before each element in the matched set of elements.


$("Element").prevAll("Expressions")

All sibling elements before the current element can be filtered by an expression.


$("Element").parent("Expressions")

Gets a collection of elements that contain a unique parent element for all matching elements.


$("Element").parents("Expressions")

Gets a collection of elements(without the root element) that contains the ancestor elements of all matching elements.You can filter through an optional expression.


$("Element").siblings("Expressions")

Find all the sibling elements before the current element, which can be filtered by an expression.



Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook