jQuery param()Method
Examples
Output the result of serializing the object:
$("button").click(function(){
$("div").text($.param(personObj));
});
Try it Yourself »
Definition and Usage
The param() method creates a serialized representation of an array or an object.
The serialized values can be used in the URL query string when generating an AJAX request.
Syntax
$.param(object,trad)
| Parameters | Description |
|---|---|
| object | Required. Specifies an array or object to be serialized. |
| trad | Optional. A Boolean value specifying whether to use the traditional style of parameter serialization. |
Other Extensions
jQuery AJAX Methods