- <form action="${pageContext.servletContext.contextPath}/XXX/###" method="post" id="messageForm">
- 姓名:<input name = "name" type="text" />
- <button type="button" id="submit">提交申请</button>
- </form>
- <script>
- $("#submit").click(function(){
- $(this).attr("disabled","true"); //设置变灰按钮
- $("#messageForm").submit();//提交表单
- setTimeout("$('#submit').removeAttr('disabled')",3000); //设置三秒后提交按钮 显示
- })
- </scritp></span>
- </span>