Selectors
-
All Selector ("*")
Selects all elements.
-
:animated Selector
Basic Filter | jQuery Extensions
Select all elements that are in the progress of an animation at the time the selector is run.
-
Attribute Contains Prefix Selector [attribute|="value"]
Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-).
-
Attribute Contains Selector [attribute*="value"]
Selects elements that have the specified attribute with a value containing the a given substring.
-
Attribute Contains Word Selector [attribute~="value"]
Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.
-
Attribute Ends With Selector [attribute$="value"]
Selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive.
-
Attribute Equals Selector [attribute="value"]
Selects elements that have the specified attribute with a value exactly equal to a certain value.
-
Attribute Has Selector [attribute]
Selects elements that have the specified attribute, with any value.
-
Attribute Multiple Selector [attributeFilter1][attributeFilter2][attributeFilterN]
Matches elements that match all of the specified attribute filters.
-
Attribute Not Equal Selector [attribute!="value"]
Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.
-
Attribute Starts With Selector [attribute^="value"]
Selects elements that have the specified attribute with a value beginning exactly with a given string.
-
:button Selector
Selects all button elements and elements of type button.
-
:checkbox Selector
Selects all elements of type checkbox.
-
:checked Selector
Matches all elements that are checked.
-
Child Selector ("parent > child")
Selects all direct child elements specified by "child" of elements specified by "parent".
-
Class Selector (".class")
Selects all elements with the given class.
-
:contains() Selector
Select all elements that contain the specified text.
-
Descendant Selector ("ancestor descendant")
Selects all elements that are descendants of a given ancestor.
-
:disabled Selector
Selects all elements that are disabled.
-
Element Selector ("element")
Selects all elements with the given tag name.
-
:empty Selector
Select all elements that have no children (including text nodes).
-
:enabled Selector
Selects all elements that are enabled.
-
:eq() Selector
Basic Filter | jQuery Extensions
Select the element at index
n
within the matched set. -
:even Selector
Basic Filter | jQuery Extensions
Selects even elements, zero-indexed. See also odd.
-
:file Selector
Selects all elements of type file.
-
:first-child Selector
Selects all elements that are the first child of their parent.
-
:first Selector
Basic Filter | jQuery Extensions
Selects the first matched element.
-
:focus Selector
Selects element if it is currently focused.
-
:gt() Selector
Basic Filter | jQuery Extensions
Select all elements at an index greater than
index
within the matched set. -
:has() Selector
Content Filter | jQuery Extensions
Selects elements which contain at least one element that matches the specified selector.
-
:header Selector
Basic Filter | jQuery Extensions
Selects all elements that are headers, like h1, h2, h3 and so on.
-
:hidden Selector
jQuery Extensions | Visibility Filter
Selects all elements that are hidden.
-
Id Selector ("#id")
Selects a single element with the given id attribute.
-
:image Selector
Selects all elements of type image.
-
:input Selector
Selects all input, textarea, select and button elements.
-
:invalide Selector
Selects all input, textarea, select and button elements, witch are invalid.
-
:last-child Selector
Selects all elements that are the last child of their parent.
-
:last Selector
Basic Filter | jQuery Extensions
Selects the last matched element.
-
:lt() Selector
Basic Filter | jQuery Extensions
Select all elements at an index less than
index
within the matched set. -
Multiple Selector ("selector1, selector2, selectorN")
Selects the combined results of all the specified selectors.
-
Next adjacent Selector ("prev + next")
Selects all next elements matching "next" that are immediately preceded by a sibling "prev".
-
Next siblings Selector ("prev ~ siblings")
Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector.
-
:not() Selector
Selects all elements that do not match the given selector.
-
:nth-child() Selector
Selects all elements that are the nth-child of their parent.
-
:odd Selector
Basic Filter | jQuery Extensions
Selects odd elements, zero-indexed. See also even.
-
:only-child Selector
Selects all elements that are the only child of their parent.
-
:parent Selector
Content Filter | jQuery Extensions
Select all elements that are the parent of another element, including text nodes.
-
:password Selector
Selects all elements of type password.
-
:radio Selector
Selects all elements of type radio.
-
:reset Selector
Selects all elements of type reset.
-
:selected Selector
Selects all elements that are selected.
-
:submit Selector
Selects all elements of type submit.
-
:text Selector
Selects all elements of type text.
-
:visible Selector
jQuery Extensions | Visibility Filter
Selects all elements that are visible.