复制代码 代码如下:
<script type="text/javascript">
$(function(){
$("#btnSubmit").click(function(){
$("form[name='form1']").submit();
$("form[name='form2']").submit();
})
})
</script>
<form name = "form1" action = "handleForm1Action">
</form>
<form name = "form2" action = "handleForm2Action">
</form>
<button id="btnSubmit">提交<button>
<script type="text/javascript">
$(function(){
$("#btnSubmit").click(function(){
$("form[name='form1']").submit();
$("form[name='form2']").submit();
})
})
</script>
<form name = "form1" action = "handleForm1Action">
</form>
<form name = "form2" action = "handleForm2Action">
</form>
<button id="btnSubmit">提交<button>
标签:
jQuery,提交,表单
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“jQuery提交多个表单的小例子”评论...