嗨,我有以下代码:
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
$(document).ready(function()
{
$('#yourSubmitId').click(function()
{
/*$(this).attr('disabled',true);*/
$(this).prop('disabled',true);
$(this).css({display:'none'});
/* your submit stuff here */
return false;
});
/*refreshing the page bringas back the submit button*/
window.location.reload();
});
//--><!]]>
</script>
</head>
<body>
<h2>Test disabling submit button for 1 minute...</h2>
<br/>
<form id="yourFormId" name="yourFormId" method="post" action="#">
<input type="image" id="yourSubmitId" name="yourSubmitId" src="C:\images
\submitButton_grey.jpg" alt="Submit" />
</form>
</body>
</html>
目前提交按钮在被按下后会被禁用和隐藏。
如何刷新页面以便在提交按钮被按下后 1 分钟后才恢复提交按钮..
谢谢,