W3Schools.com

jQuery AJAX param() Method

jQuery AJAX Methods 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 jQuery AJAX Methods


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE