Easy Tutorial
❮ Event Blur Misc Noconflict ❯

jQuery param() Method

jQuery AJAX Methods

Example

Output the serialized representation of the object:

$("button").click(function(){
    $("div").text($.param(personObj));
});

Definition and Usage

The param() method creates a serialized representation of an array or object.

The serialized value can be used in the URL query string when making an AJAX request.


Syntax

Parameter Description
object Required. Specifies the array or object to be serialized.
trad Optional. Boolean value specifying whether to use the traditional style of param serialization.

jQuery AJAX Methods

❮ Event Blur Misc Noconflict ❯