Skip to content

Tag Archives: jQuery-Selectors

It is a jQuery Selector that is used to select the last element of the specified type.Syntax:   $(":last") Return Value: It selects and returns the… Read More
The :nth-of-type() is an inbuilt selector in jQuery, used to select all the nth-child elements of specified parent. Syntax : parent_name : nth-of-type(n|even|odd|algebric equation) Parameters:… Read More
The :empty selector in jQuery is used to select empty elements. Syntax: $(":empty") Parameter: The :empty selector contains single parameter empty which is mandatory and… Read More
There are two ways to select multiple elements using selectors: element selector * selector Syntax: For element selector: $("element1, element2, element3, ...") For * selector:… Read More
The checkbox is a very important element to make interactions with a user. In JQuery, we can build a simple checkbox to allow data entry… Read More
The :has() selector in jQuery is used to select all elements that have one or more elements inside of them, that matches the specified selector.… Read More
The :lang Selector is used to select all the elements which have the lang attribute with the specified value. This attribute contains single value language_code… Read More
The :contains() selector in jQuery is used to select elements containing the specified string. Syntax: $(":contains(text)") Parameters: This selector contains single parameter text which is… Read More
The :lt() selector selects elements using an index number which works on less than a specified number. The index numbers starts from 0. Syntax: $(":lt(index)")… Read More
The [attribute^=value] selector is used to select all elements with given attribute specified by attribute parameter that starts with the word specified by value parameter.… Read More
The :radio Selector is used to select all elements of type radio. The working of $( “:radio” ) and $( “[type=radio]” ) is same. To… Read More
The :not() selector is used to select all the elements which are not selected. Syntax $(":not(selector)") Parameter: selector: Used to specify that the element not… Read More
The :reset Selector is used to select the input element having a reset field button.i.e <input type=”button”>. Syntax: $(":reset") Example: <!DOCTYPE html> <html>    <head>… Read More
The [attribute!=value] selector in jquery is used to select each element that doesn’t have the specified attribute and value. Syntax: $("[attribute!='value']") Parameter: attribute: This parameter… Read More
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