Attribute contains prefix selector [name|=”value”]
  • References/JavaScript/jQuery/Selectors

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 (-).

2025-01-10 15:47:30
:empty selector
  • References/JavaScript/jQuery/Selectors

Select all elements that have no children (including text nodes). This is the inverse of :parent

2025-01-10 15:47:30
Child selector (“parent > child”)
  • References/JavaScript/jQuery/Selectors

Selects all direct child elements specified by "child" of elements specified by "parent". As a CSS

2025-01-10 15:47:30
:only-of-type selector
  • References/JavaScript/jQuery/Selectors

Selects all elements that have no siblings with the same element name. If the parent has other child

2025-01-10 15:47:30
:focus selector
  • References/JavaScript/jQuery/Selectors

Selects element if it is currently focused. As with other pseudo-class selectors (those that begin

2025-01-10 15:47:30
Next adjacent selector (“prev + next”)
  • References/JavaScript/jQuery/Selectors

Selects all next elements matching "next" that are immediately preceded by a sibling "prev". One

2025-01-10 15:47:30
:selected selector
  • References/JavaScript/jQuery/Selectors

Selects all elements that are selected. The :selected selector works for <option>

2025-01-10 15:47:30
ID selector (“#id”)
  • References/JavaScript/jQuery/Selectors

Selects a single element with the given id attribute. For id selectors, jQuery uses the JavaScript

2025-01-10 15:47:30
Attribute contains word selector [name~=”value”]
  • References/JavaScript/jQuery/Selectors

Selects elements that have the specified attribute with a value containing a given word, delimited by spaces. This

2025-01-10 15:47:30
:even selector
  • References/JavaScript/jQuery/Selectors

Selects even elements, zero-indexed. See also odd. In particular, note that the 0-based indexing

2025-01-10 15:47:30