Responding to form events
This recipe demonstrates how to respond to events such as focus
and blur
that are triggered on controls on the web form. The constructs used in this example are as follows:
Construct |
Type |
Description |
---|---|---|
|
jQuery object |
This refers to the current jQuery object. |
|
jQuery method |
This adds the specified CSS class to each matched element. |
|
jQuery selector |
This selects elements with the specified attribute that is not equal to the |
|
jQuery event |
This is fired when an element loses focus. It corresponds to the JavaScript |
|
jQuery method |
This iterates over the matched elements and executes a function for each element. |
|
jQuery event |
This is fired when an element gets focus. It corresponds to the JavaScript |
|
jQuery selector |
This matches the |
|
jQuery event binder |
This attaches an event handler... |