Allan Mullan wrote:
I believe this is because you can't actually remove the attribute
"disabled" - Instead try doing $("#submitanswer).attr("enabled",
"enabled");
No, there is nothing like an enabled attribute. Just set the disabled
attribute to true or false (I found that to be the most reliable way):
$("#submitanswer").attr("disabled", true);
$("#submitanswer").attr("disabled", false);
However, the reason why the keyup handler does not work is that the
disabled element does not receive any events at all.
You will need to enable it elsehow.
--Klaus