Goal
This tutorial shows how to submit a form without a full page refresh while still keeping server-side validation in place.
jQuery AJAX pattern
$.ajax({ url: form.attr("action"), method: "POST", data: form.serialize() }).done(function(response) { console.log(response.message); });Key idea
AJAX improves user experience, but server validation and anti-forgery protection should still remain active.
Quick feedback
Was this helpful?
Your feedback is saved in this browser.