Description
The :animated selector selects all elements that are currently animated.
This selector has the form:
$(":animated")
The :animated selector selects all elements that are currently animated.
This selector has the form:
$(":animated")
The :eq() selector selects an element with a specific index number.
The index numbers start at 0, so the first element will have the index number 0.
This is mostly used together with another element/selector to select a specifically indexed element in a group.
This selector has the form:
$(":eq(index)")
Parameter | Description |
---|---|
index | (required) Specifies the zero-based index of the element to match |
This selector has the alternate form:
$(":eq(-index)")
Parameter | Description |
---|---|
index | (required) Specifies the zero-based index of the element to match, counting backwards from the last element |
The :even selector selects each element with an even index number (like: 0, 2, 4)
The index numbers start at 0, so the first element will be an even number (0).
This is mostly used together with another element/selector to select every even indexed element in a specific group.
This selector has the form:
$(":even")
The :first selector selects the first element.
This is mostly used together with another element/selector to select the first element in a specific group.
This selector has the form:
$(":first")
The :focus selector selects an element if it is currently focused.
This selector has the form:
$(":focus")
The :gt() selector selects elements with an index number higher than a specified number.
The index numbers start at 0.
This is mostly used together with another element/selector to select the last elements in a specific group.
This selector has the form:
$(":gt(index)")
Parameter | Description |
---|---|
index | (required) Specifies the index to start the selection |
The :header selector selects all header element (<h1>
to <h6>
).
This selector has the form:
$(":header")
The :lang selector selects all elements of the specified language.
This selector has the form:
$(":lang(language)")
Parameter | Description |
---|---|
language | (required) Specifies a language code |
The :last selector selects the last element.
This is mostly used together with another element/selector to select the last element in a specific group.
This selector has the form:
$(":last")
The :lt() selector selects elements with an index number less than a specified number.
The index numbers start at 0.
This is mostly used together with another element/selector to select the first elements in a specific group.
This selector has the form:
$(":lt(index)")
Parameter | Description |
---|---|
index | (required) Specifies the index to start the selection |
The :not() selector selects all elements except the specified element.
This is mostly used together with another element/selector to select all elements except the specified in a specific group.
This selector has the form:
$(":not(selector)")
Parameter | Description |
---|---|
selector | (required) Specifies the element to not select |
The :odd selector selects each element with an odd index number (like: 1, 3, 5)
The index numbers start at 0, so the first element will be an even number (0).
This is mostly used together with another element/selector to select every odd indexed element in a specific group.
This selector has the form:
$(":odd")
The :root selector selects the element that is the root of the document.
This selector has the form:
$(":root")
The :target selector selects the target element indicated by the fragment identifier of the document's URI.
If the document's URI contains a fragment identifier, or hash, then the :target selector will match the element with an ID that matches the identifier.
This selector has the form:
$(":target")