jQuery Selector Methods

jQuery Selector Methods

The following are the list of Selector methods available in jQuery.

MethodExplanation
children()Returns all direct children of the selected element.
closest()Returns the closest ancestor (specified element) of the selected element.
eq()Returns an element with a specific index number of the selected elements.
filter()Returns elements that match the selector or pass the function's test.
find()Returns descendant elements of matched elements, filtered by a selector, jQuery object, or element.
first()Selects the first element of the selected elements.
has()Returns all elements that have one or more descendant that matches the selector or DOM element.
last()Returns the last element of the selected elements.
next()Returns the next sibling element of the selected element.
nextAll()Returns all next sibling elements of the selected element.
nextUntil()Returns all next sibling elements between the selector and stop.
not()Returns elements that do not match with specified element/selector/function.
offsetParent()Returns the closest positioned parent element.
parent()Returns the direct parent element of the selected element.
parents()Returns all ancestor elements of the selected element.
parentsUntil()Returns all ancestor elements between the selector and stop.
prev()Returns the previous sibling element of the selected element.
prevAll()Returns all previous sibling elements of the selected element.
prevUntil()Returns all previous sibling elements between the selector and stop.
siblings()Returns all sibling elements of the selected element.
slice()Returns a subset of the matched elements.

Reminder

Hi Developers, we almost covered 99.5% of jQuery Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in jQuery.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Meet the Author