Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

plugin for jQuery

This plugin tries to serialize your form into a JSON object.

Nota bene: this plugin is AMD ready, and its name is "jquery.serializeObject"

Installation

First, to make it works, the following files have to be included.

<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fjquery.js"> </script>
<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fjquery.serializeObject.js"> </script>

How to use it

This is really simple, you can do the following stuff

var json = $("#myForm").serializeObject();

Or:

var json = $(":input").serializeObject();