<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 text()方法取标签中的文本