Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 13 years ago by anonymous

Component: ajaxcore

comment:2 Changed 13 years ago by john

Resolution: fixed
Status: newclosed
Version: 1.0

Fixed in SVN rev 243 - another option that also works is: $("input").removeAttr("disabled");

Note: See TracTickets for help on using tickets.