Topic awaiting preservation: Disabling a button (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 02-27-2004 15:25
Greets! code: <input type="submit" name="button" value="Check" onclick="this.value='Please wait'; button.disabled=true; return true;">
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-27-2004 16:10
It doesn't seem like that should cause a problem. If the sole issue is that disabling the button before the onclick event is finished cancels the form submission, then you have two possibilities: |