DOM-Form-Submit
Utility build or use form and submit using provided data. This library will intelligently reuse the same form and perform minimal manipulations for optimum performance.
Installation
Npm
npm install dom-form-submit
Example
var submit = ; // Submit form with data (create or use existing form) with callback to run after submit; // Submit an existing form.; // Basically empty form submit;
API Options / Defaults.
method: 'GET' enctype: 'application/x-www-form-urlencoded' target: '_self'
Please feel free to create a PR!