Skip to content

Tag Archives: jQuery-Selectors

The :enabled selector is used to select all enabled form elements. Syntax : $(":enabled") Parameter: :enabled selector : It is used for selecting HTML elements… Read More
The [attribute|=value] selector is used to select each element with a specific attribute, with a specific string value (like “geeks”) or starting string followed by… Read More
The .class selector in jquery is used to select multiple classes. Syntax: $(".class1, .class2, .class3, ...") Parameter: class: This parameter is required to specify the… Read More
The :selected selector is used to select option elements those are pre-selected. Note: To retrieve only the check-boxes or radio buttons, use the :checked selector.… Read More
The :last-of-type Selector is used to select all elements which are the last child of their parent. Syntax: $(":last-of-type") Below examples illustrate the :last-of-type selector… Read More
The :input selector in jQuery is used to select input elements. This selector also used with button element. Syntax: $(":input") Note: jQuery :input selector not… Read More
The :checked selector is used to select the all checked checkboxes, radio buttons and options of select elements. Note: To retrieve only the selected options… Read More
The :first-of-type Selector is used to select all elements those are the first child, of a particular type, of their parent. Syntax: $(":first-of-type") Below examples… Read More
The :nth-last-child() selector is used to select all elements those are the nth last child of their parent. The counting of element starts from last… Read More
The :password Selector is used to select the input element having password field . i.e (type==password) Syntax: $(":password") Example: <!DOCTYPE html> <html>    <head>     <script… Read More
The :text Selector is used to select input element with having a text field i.e (type==text). Syntax: $(":text") Example: <!DOCTYPE html> <html>    <head>     <script… Read More
The .class selector specifies the class for an element to be selected. It should not begin with a number. It gives styling to several HTML… Read More
The :file Selector is used to selects the input element having file field.(type==file) Syntax: $(":file") Example: Input element with type = file. <!DOCTYPE html> <html>… Read More
The :submit Selector is an inbuilt selector which is used to select the submit button and input element having submitted type field. If the type… Read More
The animated is an inbuilt selector in jQuery which is used to select the element that is currently animated. Syntax: $(:animated) Return Value: This selector… Read More