Skip to content
Simple jquery deserializer plugin that actually works!
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src Severe bug with "checkboxesAsBools" option, where there are multiple … Sep 2, 2012
test Add support for "checkboxesAsBools" option Jan 8, 2012 Add support for "checkboxesAsBools" option Jan 8, 2012

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.


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

// 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
$("#form-id").deserialize(string, {checkboxesAsBools: true});


For examples please see demo.html

Something went wrong with that request. Please try again.