May 2017
Intermediate to advanced
448 pages
10h 10m
English
The capabilities of custom selectors are not limited to locating elements based on their position. For example, when working with forms, jQuery's custom selectors and complementary CSS3 selectors can make short work of selecting just the elements we need. The following table describes a handful of these form selectors:
| Selector | Match |
| :input | Input, text area, select, and button elements |
| :button | Button elements and input elements with a type attribute equal to button |
| :enabled | Form elements that are enabled |
| :disabled | Form elements that are disabled |
| :checked | Radio buttons or checkboxes that are checked |
| :selected | Option elements that are selected |
As with the other selectors, form selectors can be combined for ...
Read now
Unlock full access