This Jquery Plugin will help you to submit a form to a external file without refreshing the page.
Here’s how the HTML file will look like:
Here is the Jquery code added in the file above.
Replace the red colored codes above with the id or class of your form eg: #form2 , .myform
The form :
Replace the blue colored line with your form id. It should be same on the script too.
Replace the red colored line with the type of method of the post (post or get).
Replace the green colored line with the place you want to submit the form to.