Skip to main content

Bug Tracker

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; });

Attachments (0)
Change History (2)

Changed August 28, 2006 09:57PM UTC by anonymous comment:1

component: ajaxcore

Changed August 31, 2006 04:28AM UTC by john comment:2

resolution: → fixed
status: newclosed
version: 1.0

Fixed in SVN rev 243 - another option that also works is:

$("input").removeAttr("disabled");