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>

 

上一篇:Evernote用户只用了5%的功能,这着实给科技公司上了一课


下一篇:C3203编译错误