Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

jQuery param() Method

❮ jQuery AJAX Methods

Example

Output the result of a serialized 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 making an AJAX request.


Syntax

$.param(object,trad)

Parameter Description
object Required. Specifies an array or object to serialize
trad Optional. A Boolean value specifying whether or not to use the traditional style of param serialization

❮ jQuery AJAX Methods