Does
$('#myElem').attr('disabled',true);
on a disabled element trigger any event listener associated to it? (change(),click() or whatever)
Does
$('#myElem').attr('disabled',true);
on a disabled element trigger any event listener associated to it? (change(),click() or whatever)
Here is what disabled
does http://www.w3.org/TR/html401/interact/forms.html#h-17.12.1
17.12.1 Disabled controls
Attribute definitions
disabled [CI] When set for a form control, this boolean attribute disables the control for user input. When set, the disabled attribute has the following effects on an element:
Disabled controls do not receive focus. Disabled controls are skipped in tabbing navigation. Disabled controls cannot be successful. The following elements support the disabled attribute: BUTTON, INPUT, OPTGROUP, OPTION, SELECT, and TEXTAREA.
This attribute is inherited but local declarations override the inherited value.
How disabled elements are rendered depends on the user agent. For example, some user agents "gray out" disabled menu items, button labels, etc.
It will not trigger any events. It's more of a functionality thing where it will not allow a user interact with an element nor will it send the value of the field on submit if it's inside a form.