Site icon Shaharia's Blog

Post Form Data via JQuery-Ajax Post

Case Scenario
Want to prevent default HTML form submission behavior and want to post form data via jquery & ajax to any URL.

Solution
Very simple solution. just with e.preventDefault() prevent default form submission and write down the following jquery code and enjoy!

Thanks. Post a comment if you face any problem.

Exit mobile version