#151 closed bug (fixed)
attr() does not work correctly for 'disabled' attribute
Reported by: | ieure | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It is possible to set the 'disabled' attribute on a form control with attr(), but it is impossible to clear it.
E.g.:
Disables all inputs $('input').attr('disabled', true);
Should reenable inputs, but doesn't. $('input').attr('disabled', false);
Instead, I must use the much more clunky:
$('input').each(function() { this.disabled = false; });
Change History (2)
comment:1 Changed 16 years ago by
Component: | ajax → core |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 1.0 |
Note: See
TracTickets for help on using
tickets.
Fixed in SVN rev 243 - another option that also works is: $("input").removeAttr("disabled");