更新按钮文本和其他问题

updating button text and other issues

本文关键字:其他 问题 文本 按钮 更新      更新时间:2023-09-26

我正在尝试更新我的按钮。但问题是,我不能随身携带身份证/姓名,对吧,在这样做的时候?那么,如果我在页面上有多个表单,并且必须识别按钮,该怎么办?

<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);" />

此外,当我点击提交按钮时,按钮似乎不会等待3秒钟。

3u指定的延迟时间为毫秒,提交表单3秒后通过3000。1000ms=1秒