Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple jquery deserializer plugin that actually works!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 demo
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 Readme.md
Readme.md

This is a very simple jQuery plugin providing 'deserialize' functionality to a form elements. In contrary to some other plugins available it doesn't reinvent the wheel (by utilizing native browser methods) and actually works.

Usage

// string = $("#form-id").serialize()
// string = "foo=1&bar=2"
$("#form-id").deserialize(string);

// do not trigger change events
$("#form-id").deserialize(string, {noEvents: true});

// expect "true" and "false" values for checkboxes instead of presence/absence of field (see https://gist.github.com/1572512).
$("#form-id").deserialize(string, {checkboxesAsBools: true});

Demo

For examples please see demo.html

Something went wrong with that request. Please try again.