updating button text and other issues
- by droidus
I am trying to update my button. but the problem is that I can't have an ID/name with it, right, when doing this? so what if I have multiple forms on the page, and must identify the button?
<input type="submit" value="Upload my File" style="background-color:#00F; font-size:14px; padding:1em;" onclick="
this.value='Please wait...';
this.disabled = true;
var theForm = this.form;
window.setTimeout(function(){theForm.submit();},3);" />
also, the button doesn't seem to wait 3 seconds when I hit the submit button.