The jQuery type selectors are used to select elements
from a page based on the type of the element. For example the “:text”
selector will select all the text boxes in the page.
In this post we shall see the various type selectors available in jQuery, and how to use them to filter out elements of specific type.
The following are the type selectors available in jQuery.
In this post we shall see the various type selectors available in jQuery, and how to use them to filter out elements of specific type.
The following are the type selectors available in jQuery.
Selector
|
Type
of Element selected
|
text
|
Selects
all the TextBox elements in the page
|
textarea
|
Selects
all the TextArea elements in the page
|
hidden
|
Selects
all the Hidden elements in the page
|
password
|
Selects
all the Password elements in the page
|
radio
|
Selects
all the Radio Button elements in the page
|
checkbox
|
Selects
all the Checkbox elements in the page
|
submit
|
Selects
all the Submit button (input type = submit) elements in the page
|
reset
|
Selects
all the Reset button (input type = reset) elements in the page
|
button
|
Selects
all the Button (input type = button) elements in the page
|
image
|
Selects
all the Image elements in the page
|
file
|
Selects
all the File Upload elements in the page
|
a
|
Selects
all the Hyperlink elements in the page
|
Related Post
jQuery type Selector
jQuery text Selector
jQuery textarea selector
jQuery hidden Selector
jQuery password Selector
jQuery dropdown Selector
jQuery radio Selector
jQuery checkbox Selector
jQuery image Selector
jQuery HyperLink Selector
jQuery submit Selector
jQuery reset Selector
jQuery button Selector
jQuery type selector Example
No comments:
Post a Comment