Close

July 30, 2015

jQuery Tutorial: Submit a Form and Post Data Using jQuery and AJAX

In this jQuery tutorial, you’ll learn how to submit a form, post the data and format the response using jQuery and AJAX:

Here’s the code I used in the video:

If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.

9 Comments on “jQuery Tutorial: Submit a Form and Post Data Using jQuery and AJAX

Sanjay Kumar
March 27, 2018 at 4:26 am

Nice Post

Reply
hardik
June 21, 2018 at 5:03 am

Working code! thanks. i was stuck in the same from a day. working fine for my login form now.

Reply
David W Snow
June 29, 2018 at 12:00 pm

Nice BUT it only works for cases that exactly match the value inputted. If the name isn’t in the database you get an error.

Reply
John Morris
June 29, 2018 at 12:12 pm

Sure, you can just change your MySQL query statement for that. This is highlighting more the AJAX request and how to handle all that than the SQL part.

Reply
wanangwa
July 11, 2018 at 2:28 pm

nice code

Reply
Darian
August 4, 2018 at 7:18 am

This code is a savior man !!!

Reply
John Morris
August 6, 2018 at 12:29 pm

Glad to hear that!

Reply
Jehazee
August 14, 2018 at 2:28 pm

thanks 🙂

Reply
John Morris
August 15, 2018 at 3:47 pm

No problem

Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.