Skip to content

Tag Archives: jQuery-Selectors

The #id selector specifies an id for an element to be selected. It should not begin with a number and the id attribute must be… Read More
The event.delegateTarget property in jQuery is used to return the element where the currently-called jQuery event handler was attached. Syntax: event.delegateTarget Parameter: event: It is… Read More
jQuery element selector is used to select and modify HTML elements based on the element name. Syntax: $("element_name") Example-1: This example selects the “h2” element… Read More
The :header Selector is used to select all the heading elements that is from (<h1> to <h6>). Syntax: $(":header") Example: Change the color of all… Read More
The jQuery * selector selects all the elements in the document, including HTML, body, and head. If the * selector is used together with another… Read More
The :focus Selector is used to select all the elements that have focus on the document currently. It is also used with a tag name… Read More
The jQuery :button selector selects button elements and input elements with type=”button”. The button element is not selected if we use input=” button” as a… Read More
$(“[attribute*=value]”) is used to select all elements with attribute specified by attribute parameter that contains the word specified by value parameter. Syntax: $("[attribute*='value']") Parameters: This… Read More
The [attribute$=value] selector is used to select each element with a specific attribute, with a specific ending string. Syntax: $("[attribute$='value']") Parameter: attribute : This parameter… Read More
It is a jQuery Selector used to select all elements that are the direct child of its parent element. Syntax: ("parent > child") Parameter Values:… Read More
The jQuery [attribute=value] selector is used to select and modify HTML elements with specified attribute and value. Parameter Values: attribute: Used to specify attribute to… Read More
It is a jQuery Selector used to select every element that is the only child of it’s parent i.e only single child is selected. Syntax:… Read More
It is a jQuery Selector used to select every element that is the last child of its parent. Syntax: $(":last-child") Return Value: It selects and… Read More
The :disabled selector is used for selecting all disabled form elements. Syntax: $(":disabled") Parameter: :disabled selector: It is used for selecting HTML elements that support… Read More
The jQuery :odd selector used to select an odd number index from the elements. The number of index starts from 0. The working is same… Read More