Side navigation
#151 closed bug (fixed)
Opened August 28, 2006 09:56PM UTC
Closed August 31, 2006 04:28AM UTC
Last modified June 20, 2007 03:21AM UTC
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; });
Fixed in SVN rev 243 - another option that also works is:
$("input").removeAttr("disabled");