Effortlessly submit forms using jQuery, AJAX, and JSON

At just over 200 lines of code, you'll never want to deal with AJAX-based form submission any other way.


  • Makes regular HTML forms AJAX-capable.
  • Minimal markup.
  • Handles form serialization so you don't have to.
  • Shows/hides a loader and message if you provide them.
  • Highlights invalid fields.
  • Callbacks for success, fail, before, and after.
  • API to disable/enable all form inputs.
  • API to reset the form (including loader, message, and invalid fields)
  • Compact! (about 200 lines)


Here's a minimal example of the plugin in action. For more advanced usage, refer to the docs.

    success: function(res) {

Installing with NPM

npm install --save @claviska/jquery-ajaxSubmit

Docs / Downloading / Contributing

You can read the docs, download the source, and contribute to the project on GitHub. Please submit issues to the issue tracker and questions to StackOverflow.

This plugin is licensed under the MIT license.

Author avatar

About the author

Creator of Surreal CMS and other web things. Follow me for tweets about JavaScript, CSS, and web programming.