我搜索並從這裏找到了漂亮的代碼。 Submit a form using jQueryJquery在一個頁面中提交多個表單
<input type='button' value='Submit form' onClick='submitDetailsForm()' />
<script language ="javascript" type = "text/javascript" >
function submitDetailsForm()
{
$("#formId").submit();
}
</script>
但是,你能告訴我們如何處理頁面中的多個表單嗎?
<form id="myForm1" action="comment.php" method="post"></form>
<form id="myForm2" action="comment.php" method="post"></form>
<form id="myForm3" action="comment.php" method="post"></form>
<form id="myForm4" action="comment.php" method="post"></form>
精確複製http://stackoverflow.com/questions/ 11373361/jquery-multiple-forms-submit – Sibu 2012-07-23 09:33:20