Skip to content
HTML form serialization
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
examples
.gitignore
LICENSE
README.md
package.json
serialize.js
serialize.min.js

README.md

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.

You can’t perform that action at this time.