Checklist
- Prevent default form submit.
- Disable submit button while sending.
- Send anti-forgery token with form data.
- Show validation messages returned from the server.
- Restore button state after success or failure.
Practice idea
Convert a contact form into an AJAX form and display a SweetAlert success message.
Quick feedback
Was this helpful?
Your feedback is saved in this browser.