updating button text and other issues

Posted by droidus on Stack Overflow See other posts from Stack Overflow or by droidus
Published on 2012-04-02T17:19:52Z Indexed on 2012/04/02 17:29 UTC
Read the original article Hit count: 196

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html