[jQuery] Re: Enable a disabled button by id

2009-03-31 Thread Karthikraj
On Mar 30, 7:44 pm, Thierry wrote: > I can disable button with specific id with the following code: > > jQuery("#click_me:button").attr("disabled", "true"); > > If I want to re-enable the button, the following doesn't work: > > jQuery("#click_me:button").attr("disabled", "false"); > > Does anyo

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Gilles
HTML way ==> XHTML way ==> if you set attribute to false Button is still disabled So like said before, remove the attribute completly :) On Mar 30, 3:47 pm, "Jonathan Vanherpe (T & T NV)" wrote: > Thierry wrote: > > I can disable button with specific id with the following code: > > > jQu

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Jonathan Vanherpe (T & T NV)
Thierry wrote: > I can disable button with specific id with the following code: > > jQuery("#click_me:button").attr("disabled", "true"); > > If I want to re-enable the button, the following doesn't work: > > jQuery("#click_me:button").attr("disabled", "false"); > > Does anyone know what I'm mi

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Leonardo K
Shoud be: jQuery("#click_me:button").attr("disabled", "disabled"); and to re-enable jQuery("#click_me:button").removeAttr("disabled"); On Mon, Mar 30, 2009 at 11:44, Thierry wrote: > > I can disable button with specific id with the following code: > > jQuery("#click_me:button").attr("disabled

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Martijn Houtman
On Mar 30, 2009, at 4:44 PM, Thierry wrote: jQuery("#click_me:button").attr("disabled", "false"); jQuery("#click_me:button").removeAttr("disabled"); Regards, -- Martijn.