@wviveiro/ajaxform
v0.0.5
Published
Submit a form without having to add it to DOM. Works like a ajax function, but you can set the tab target instead of receiving a return on the function.
Downloads
3
Readme
Ajax Form
Submit a form without having to add it to DOM. Works like a ajax function, but you can set the tab target instead of receiving a return on the function.
Install
npm i @wviveiro/ajaxform
Usage
import ajaxform from 'ajaxform';
const onClick = () => {
ajaxform({
url: 'https://foo.bar',
data: {
foo: 'bar',
lorem: 'ipsum'
},
target: '_blank'
});
}