form-to-object
v6.0.0
Published
Convert form input values to an object
Downloads
595
Readme
form-to-object
Convert form input values to an object.
<form>
<input type="text" name="name" value="jon"></input>
</form>
var toObject = require('form-to-object')
var form = document.querySelector('form')
var object = toObject(form);
// object.name === 'jon'