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 Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to