[jQuery] Setting attribute nodes with boolean?
Hi all,
I want to enable an input element if a form was entered correctly. That
does not work:
$("#input[@type='submit']").set("disabled", "false");
For these cases there should be the possibility, to pass a boolean (this
is what the DOM expects):
$("#input[@type='submit']").set("disabled", false);
By now, one can do this instead:
$("#input[@type='submit']").get(0).removeAttribute("disabled");
That's not too bad, just asking.
Regards, Klaus
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/