four0four
09-17-2009, 03:15 AM
How can I use jQuery to submit multiple forms with different types, values, and actions?
For example:
<form name="form1" method="get" action="submit1.php">
<input name="value1" type="text" value="">
</form>
<form name="form2" method="post" action="submit2.php">
<input name="value2" type="text" value="">
</form>
<form name="form3" method="post" action="submit3.php">
<input name="value3" type="text" value="">
</form>
<input type="button" value="Submit All Forms" onclick="submit();">
Can I start the jQuery process from within a function when clicking on the submit button?
I've found a lot of tutorials concerning this, but they don't make any sense to me.
Thanks!
For example:
<form name="form1" method="get" action="submit1.php">
<input name="value1" type="text" value="">
</form>
<form name="form2" method="post" action="submit2.php">
<input name="value2" type="text" value="">
</form>
<form name="form3" method="post" action="submit3.php">
<input name="value3" type="text" value="">
</form>
<input type="button" value="Submit All Forms" onclick="submit();">
Can I start the jQuery process from within a function when clicking on the submit button?
I've found a lot of tutorials concerning this, but they don't make any sense to me.
Thanks!