JSON Form Submit
Client-side AJAX form handler that simplifies submissions while giving you control.
It leverages the browser's default behavior of handling form submissions (gives you free validation/UI for things like email or required fields) while preventing the actual form submission so you can handle that yourself.
Install:
npm install json-form-submit
Usage:
<!-- HTML: --> Register
//JS (via browserify)var jsonForm =
You can also supply a post URL and a pre-post function. To do this, supply an object followed by the callback. If you do it this way, the callback will return with an extra object containing the response from the post event. Ex: