Thanks Benjamin, I'll have a proper look through the docs next time and thanks for the tip about IE6.
Adrian On Jul 30, 1:47 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Adrian: > > Try $('#myButton').removeAttr('disabled'); > > but... I believe IE6 has an issue with the disabled being dynamically > appended, so you may need todo: > > $('#myButton').disabled = true; > > $('#myButton').disabled = false; > > On 7/30/07, Adrian Lynch <[EMAIL PROTECTED]> wrote: > > > > > > > Using attr(key, value) I can disable a button like so: > > > $("#myButton").attr("disabled", "disabled"); > > > which results in: > > > <button id="myButton" disabled="disabled">My button</button> > > > But when I want to reverse this I do the following: > > > $("#myButton").attr("disabled", ""); > > > which produces this: > > > <button id="myButton" disabled="">My button</button> > > > How can I remove the disabled attribute altogther? > > > Thanks. > > > Adrian > > -- > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com