Tiggles ツ of Speak Creative
12/25/2018 - 9:09 PM

JQuery Selectors

Some Jquery Selectors

#id
element
.class
*
selector1, selector2, selectorN 
ancestor descendant
parent > child
previous + next
previous ~ sibling
:first
:last
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lt(index)
:header
:animated
:contains(text)
:empty
:has(selector)
:parent
:hidden
:visible
[attribute]
[attribute=value]
[attribute!=value]
[attribute^=value]
[attribute$=value]
[attribute*=value]
:nth-child(index/even/odd/equation)
:first-child
:last-child
:input
:text
:radio
:checkbox
:enabled
:disabled
:checked
:selected
Selects a single element with the specified id
Selects all elements with the specified name
Selects tall elements with the specified class
Selects all elements.
Selects the combined result of all the selectors
Selects all descendant elements specified by descendant of elements specified by ancestor
Selects all direct child elements specified by child of elements specified by parent
Selects all elements specified by next that are next to elements specified by previous
Selects all sibling elements following the previous element that match the siblings selector
Selects the first selected element in the page
Selects the last selected element in the page
Removes all elements matching the specified selector
Selects even elements
Selects odd elements
Selects a single element by its index number
Selects all elements with an index number greater than the specified one
Selects all elements with an index number less than the specified one
Selects all elements that are headers, such as h1, h2, and h3.
Selects all elements that are being animated.
Selects elements that contain the specified text.
Selects all elements that have no children.
Selects elements that contain at least one element that matches the specified selector
Selects all elements that are parents.
Selects all elements that are hidden.
Selects all elements that are visible.
Selects elements that have the specified attribute.
Selects elements that have the specified attribute with the specified value
Selects elements that have the specified attribute but not the specified value
Selects elements that have the specified attribute and start with the specified value.
Selects elements that have the specified attribute and end with the specified value
Selects elements that have the specified attribute and contain the specified value.
Selects elements that are the nth child or that are the parent’s even or odd children.
Selects all elements that are the first child of their parents.
Selects all elements that are the last child of their parents.
Selects all input elements 
Selects all input elements of type TEXT
Selects all input elements of type RADIO 
selects all input elements of type CHECKBOX
selects all elements that are enabled
selects all elements that are disabled.
Selects all elements that are checked
Selects all elements that are selected