Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Submit Forms without Refreshing Page

Using Javascript/jQuery we can Submit any form on a webpage directly to required php script and show the result to the user. this can be achieved by using xmlHttpRequest in Javascript, or ajax request of Jquery. Let's see how it is possible: Consider the following form;

Email Id:
Password:
Name:
Comment:

Here the form has no common attributes such as mehod, action,etc. because we will be handling them through javascript or jQuery. Let's see how to Handle the above form using jQuery. Just add a script tag below the form. The code may be like this;


This post first appeared on TechScan99, please read the originial post: here

Share the post

Submit Forms without Refreshing Page

×

Subscribe to Techscan99

Get updates delivered right to your inbox!

Thank you for your subscription

×