Decodes serialized form data and populates a form with that data.
JavaScript
Pull request Compare This branch is 44 commits behind kflorence:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
examples
external
src
tests
license-gpl
license-mit
readme.textile
version

readme.textile

jQuery.deserialize (#8980)

$("form").deserialize(data[, callback]);
  • data A serialized String, Array or Object.
  • callback The function that will be executed upon completion.

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 key/value pairs. Thus, the plugin is compatibile with the data collected using the following methods:

Arguments

The plugin accepts two arguments: data and callback, the latter being optional. Data should contain one of the compatible formats listed above. Callback is a function that will be executed at the completion of the plugin.

Requirements

jQuery.deserialize requires:

License

Copyright © 2011 Kyle Florence
jQuery.deserialize is dual licensed under MIT and GPLv2 licenses.