jQuery提交多个表单的小技巧
<scripttype="text/javascript"> $(function(){ $("#btnSubmit").click(function(){ $("form[name='form1']").submit(); $("form[name='form2']").submit(); }) }) </script> <formname="form1"action="handleForm1Action"> </form> <formname="form2"action="handleForm2Action"> </form> <buttonid="btnSubmit">提交<button>