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;
Related Articles
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;