HTML way ==> <input type="button" disabled> XHTML way ==> <input type="button" disabled="disabled">
if you set attribute to false <input type="button" disabled="false"> Button is still disabled So like said before, remove the attribute completly :) On Mar 30, 3:47 pm, "Jonathan Vanherpe (T & T NV)" <jonat...@tnt.be> wrote: > 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 missing? > > I think you need to use removeAttribute('disabled'). Browsers check for > the attribute's existence, and not for the value (which should be > technically be 'disabled', btw ) > > Jonathan > -- > Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be