Response title
This is preview!




Events triggered by actions inside a HTML form.
Applies to all HTML5 elements, but is most common in form elements:
| Attribute | Value | Description |
|---|---|---|
| onblur | script | Script to be run when an element loses focus |
| onchange | script | Script to be run when an element changes |
| oncontextmenuNew | script | Script to be run when a context menu is triggered |
| onfocus | script | Script to be run when an element gets focus |
| onformchangeNew | script | Script to be run when a form changes |
| onforminputNew | script | Script to be run when a form gets user input |
| oninputNew | script | Script to be run when an element gets user input |
| oninvalidNew | script | Script to be run when an element is invalid |
| onreset | script | Script to be run when a form is reset Not supported in HTML5 |
| onselect | script | Script to be run when an element is selected |
| onsubmit | script | Script to be run when a form is submitted |
- if( $.cookie(options.cookieName) || options.loadTheme ){
- var themeName = $.cookie(options.cookieName) || options.loadTheme;
- switcherpane.find('a:contains('+ themeName +')').trigger('click');
- }
Is there any way to avoid the onSelect event from triggering when the click is triggered and not user-generated?
© 2012 jQuery Foundation
Sponsored by
and others.
