serializeObject jQuery Plugin

This plug-in is based on the jQuery serialize/serializeArray method functionality and produces an object from Input Element Form Variables.

The object produced contains an object with properties for the names of each element and the value set to the value of the element as a string.

$.fn.serializeObject = function()

Example

The following code demonstrates how to keep a related element in sync with a primary element (here a shadow with a div). As the item moves, is resized or the display changes the related element applies the same operations:

var formVars = $("form").serializeObject()
alert(formVars.txtName + " " + formVars.txtCompany);

Class Members

See also:

Class modalDialog

© West Wind Technologies, 1996-2024 • Updated: 02/22/14
Comment or report problem with topic