input提交按钮只能点击一次变成灰色并失效的方法
首先引入jquery-1.8.2.min.js【点击下载jquery-1.8.2.min.js】
然后把下面的js代码放在网页最底部(不能放在jquery-1.8.2.min.js之前)
<script>
$("form").submit(function() {
$("#buttonid").val("正在处理...");
$("#buttonid").attr("disabled", "disabled");
});
</script>
最后在input中写入id="buttonid",例如:
<input id="buttonid" type="submit" value="提 交" />
如图所示:

Tag:input提交按钮只能点击一次变成灰色并
标签解析:{category module=share pid=0}
当前路由:article/show/index
动态地址:index.php?s=article&c=html&m=show&catids=&ids=&is_mobile=&iframe=1&pp=71
变量前缀:t
总记录数:11
分页功能:未开启
可用字段:id、tid、pid、mid、pids、name、dirname、pdirname、child、childids、domain、mobile_domain、thumb、show、content、displayorder、disabled、ismain、pcatpost、topid、catids、is_post、url、total
-
用微信 “扫一扫”
将文章分享到朋友圈。
关注公众号:xue-jiqiao
本文版权归原作者所有,转载请注明原文来源出处,学技巧网站制作感谢您的支持!
发表评论:
最新建站教程
猜你也喜欢看这些



