jQuery – :odd Selector
The :odd selector selects every element with an odd index number (1, 3, 5, etc.). This is often used to create a striped row look in HTML tables.
The :odd selector selects every element with an odd index number (1, 3, 5, etc.). This is often used to create a striped row look in HTML tables.
The :only-child selector selects every element that is the only child of its parent. If the parent has multiple child elements, it will NOT be selected.
The :only-of-type selector selects every element that is the only child of its type of its parent.
The Parent Descendant selector selects all elements that are descendants (child, grandchild, great-grandchild, etc) of a specified element.
The :parent selector selects all specified html elements that have child elements or text.
The Parent > Child selector selects all elements that are a direct child of the specified element.
The :password selector selects HTML form input elements with type=”password”.
The :reset selector selects HTML form input elements and button elements with type=”reset”.
The :root selector selects the document’s root element which is the html
tag.
The :submit selector selects HTML form input elements and button elements with type=”submit”.
The :selected selector selects option elements from a dropdown list that are preselected.
The :visible selector selects elements NOT set to: display: none, form elements with type=hidden, elements with zero width/height, child with a hidden parent.
The add() method adds elements to an existing group of elements in the whole document, or just inside context elements if specified.
The addClass() method adds one or more class names to the selected elements.
The .ajax() method is used to perform an AJAX (asynchronous HTTP) request, and is mostly used for requests where the other methods cannot be used.
The after() method inserts specified content (HTML tags, jQuery objects, DOM elements) after the selected elements.
The ajaxComplete() method specifies a function to be run when an AJAX request completes.