jQuery提交多个表单的小技巧
投稿:whsnow
本节主要介绍了jQuery提交多个表单的小技巧,需要的朋友可以参考下
<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>