1.0.1 • Published 6 years ago

@riverside/form-serialize v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

form-serialize

Vanilla JavaScript form serialization

When you can't (or don't want to) use javascript libraries like jQuery, Moo Tools, Dojo, YUI or Prototype, and their built-in functions, but still need a quick and easy way to serialize forms.

Installation

  • npm
npm install @riverside/form-serialize
  • browser
<script src="serialize.min.js"></script>

How to use

  • node.js
const serialize = require('@riverside/form-serialize');
console.log(serialize(form));
  • browser
<script>
console.log(serialize("#form"));
console.log(serialize(document.querySelector("#form")));
</script>

Demo

https://projects.zinoui.com/serialize/

License

form-serialize is licensed under the MIT license.

1.0.1

6 years ago

1.0.0

6 years ago