Scan the technology
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;
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;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please keep visiting.