Skip to content

riverside/form-serialize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

form-serialize

Vanilla JavaScript form serialization

NPM

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>

License

form-serialize is licensed under the MIT license.

Releases

No releases published

Sponsor this project

Packages

No packages published