Decodes serialized form data and populates a form with that data.
HTML JavaScript VimL
Latest commit 609a061 Nov 7, 2015 @kflorence Merge pull request #30 from kflorence/kflorence-patch-1
Update jquery.deserialize.min.js (Fixes #29)
Failed to load latest commit information.
dist Update jquery.deserialize.min.js Nov 7, 2015
examples #2 - Replace '+' in values with space. Apr 19, 2012
external Simplify unit tests. Oct 1, 2012
src Update jquery.deserialize.js Nov 7, 2015
tests Fix bugs when an input name is used across elements of different types. Sep 13, 2015
bower.json Update bower.json Nov 7, 2015
license-gpl Add GPLv2 and MIT licenses Apr 24, 2011
license-mit Add GPLv2 and MIT licenses Apr 24, 2011
package.json Update package.json Nov 7, 2015 Update Nov 7, 2015


$("form").deserialize(data[, options]);

Decodes serialized form data and populates the form with that data. This method works upon text strings in standard URL-encoded notation, arrays containing objects of name/value pairs or objects containing name/value pairs. Thus, the plugin is compatibile with the data collected using the following methods:


Populate a form on page load using query string parameters:

jQuery(function( $ ) {
    $( 'form' ).deserialize( 1 ) );


The plugin accepts two arguments: data and options, the latter being optional. Passing the complete() function as the second argument to this plugin is also supported.

  • data String, Array, Object A serialized (and/or encoded) String, an Array of objects containing name/value pairs, or an object of name/value pairs.
  • options Object An object of key/value pairs that configure the plugin.
    • change Function Called for every changed input value.
    • complete Function Called when all of the inputs have been updated.


jQuery.deserialize requires:


Copyright (c) 2015 Kyle Florence
jQuery.deserialize is dual licensed under MIT and GPLv2 licenses.