jQuery param() method Last Updated : 11 Jul, 2023 Comments Improve Suggest changes Like Article Like Report The param() method in jQuery is used to create a serialized representation of an object. Syntax: $.param( object, trad )Parameters: This method accepts two parameters as mentioned above and described below: object: It is a mandatory parameter that is used to specify an array or object to serialize.trad: It is an optional parameter and is used to specify whether or not to use the traditional style of param serialization.Example 1:uses This example uses the param() method to create a serialized representation of an object. html <!DOCTYPE html> <html> <head> <title> jQuery param() Method </title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>jQuery param() method</h2> <button>Click</button> <div></div> <!-- Script using param() method --> <script> $(document).ready(function () { personObj = new Object(); personObj.Firstword = "Geeks"; personObj.Secondword = "For"; personObj.Thirdword = "Geeks"; personObj.Wordcolor = "Green"; $("button").click(function () { $("div").text($.param(personObj)); }); }); </script> </body> </html> Output: Example 2:This example uses the param() method to create a serialized representation of an object. html <!DOCTYPE html> <html> <head> <title> jQuery param() Method </title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>jQuery param() method</h2> <button>Click</button> <div></div> <!-- Script using param() method --> <script> $(document).ready(function () { personObj = new Object(); personObj.Fullword = "GeeksForGeeks "; personObj.Wordcolor = " Green"; $("button").click(function () { $("div").text($.param(personObj)); }); }); </script> </body> </html> Output: Comment S shubhamsingh10 Follow Improve S shubhamsingh10 Follow Improve Article Tags : Web Technologies JQuery jQuery-Methods Explore jQuery Tutorial 8 min read Getting Started with jQuery 4 min read jQuery Introduction 7 min read jQuery Syntax 2 min read jQuery CDN 4 min read jQuery SelectorsJQuery Selectors 5 min read jQuery * Selector 1 min read jQuery #id Selector 1 min read jQuery .class Selector 1 min read jQuery EventsjQuery Events 4 min read jQuery bind() Method 2 min read jQuery blur() Method 1 min read jQuery change() Method 2 min read jQuery EffectsjQuery animate() Method 2 min read jQuery clearQueue() Method 2 min read jQuery delay() Method 2 min read jQuery HTML/CSSjQuery addClass() Method 2 min read jQuery after() Method 1 min read jQuery append() Method 2 min read jQuery TraversingjQuery | Traversing 4 min read jQuery add() method 1 min read jQuery addBack() Method 2 min read Like