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:
- jQuery.serialize
- jQuery.serializeArray
- jQuery.serializeObject (unofficial)
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.
jQuery.deserialize requires:
- jQuery version 1.4.3+ (A patch is available for versions 1.2+).
Copyright © 2011 Kyle Florence
jQuery.deserialize is dual licensed under MIT and GPLv2 licenses.