[jQuery] Remove element attribute
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