This tutorial explains usage of selected selector in jQuery. The selected selector event occurs when an element is selected in the document. It matches the elements that are of type selected in a page. It works for option elements that are pre-selected. The pre-selected option will be displayed first in the drop down list. The …
jQuery
JQuery Multiple Attribute Selector Example
This tutorial explains how to multiple elements in jQuery. The multiple attribute selector selects multiple elements within a form. It matches all the specified attributes in the document and it specifies the multiple elements can be selected at once. The multiple attribute selectors can be used to refer to several attributes of an element or …
JQuery Input Selector Example
This tutorial explains usage of input selector in jQuery. The input selector selects all the input elements in the document. It selects only form elements that can be represented as text box, password box, radio button, check box, submit button and reset button elements. The input element is used to create interactive controls for web …
How To Select All CheckBoxes using JQuery
This example demonstrates how to select all the checkboxes using JQuery. It is one of the common requirement in many of the applications, when there is multiple checkboxes in a page, we have to keep an option for “select all” and when all the checkboxes got selected, by default “select all” check box also to …
JQuery Class Selector Example
JQuery class selector selects elements by its class name. It represents the elements with specified class name. It inspects and manipulates the elements which are assigned to it. It contains class attribute of an element. It’s also possible to set styles for elements by using the class attribute. An element can contain multiple classes. If …
JQuery ID Selector Example
JQuery Id selector selects elements with the given id attribute. It represents the tag with the given ID in the document object model. The id selector is a name preceded by a hash character (#). The id selector matches an element based on contents of the given id attribute which match exactly the value given …
JQuery Has Attribute Selector Example
This tutorial explains usage of the has attribute selector in JQuery. The has attribute selector selects all the elements that has specified attribute and value. It represents the value mentioned in the attribute. For instance, id=”myval”, here id is an attribute and option is a value. The has attribute selector defines all the elements which …
JQuery Header Selector Example
The header selector in JQuery selects all the heading elements of the web page. A header element typically contains section’s heading. It selects all the elements from h1 to h6 in the document. In short, the header selector contains at least one heading tag from h1 to h6. It is important to note that header …