[development] Disabling a form button after a click doesn't work?
Steve Ringwood
nevets at mailbag.com
Thu Jun 21 21:58:01 UTC 2007
I think you want something like
$(document).ready(
function(){
$("#node-form").submit(
function() {
$("#node-form .form-submit")[0].disabled=true;
return true;
}
);
}
);
I think if you do the disable on the click event you disable the submit
event.
This way it does the disable as part of the submit.
Steve Ringwood
Nevets Software
More information about the development
mailing list