jQuery serialize() with Examples Last Updated : 11 Jul, 2025 Suggest changes Share Like Article Like Report The serialize() method is an inbuilt method in jQuery that is used to create a text string in standard URL-encoded notation. This method can act on a jQuery object that has selected individual form controls, such as input, textarea etc. Syntax: $(selector).serialize()Parameters: This method does not contain any parameter. Return Value: This method returns a string of an object for the selected element. The below example illustrates the serialize() method in jQuery: Example: html <!DOCTYPE html> <html> <head> <title>serialize Method</title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <!-- jQuery code to show the working of this method --> <script> $(document).ready(function () { $("button").click(function () { $("#d").text($("form").serialize()); }); }); </script> <style> #d1 { width: 300px; height: 100px; padding: 20px; border: 2px solid green; margin-bottom: 10px; } </style> </head> <body> <div id="d1"> <form action=""> Site Name: <input type="text" name="SiteName" value="GeeksforGeeks"> <br> <br> Contributor name: <input type="text" name="ContributorName" value="geeks"> <br> </form> <!-- click on this button --> <button>Click here!</button> </div> <div id="d"></div> </body> </html> Output: K kundankumarjha Follow Article Tags : Web Technologies JQuery jQuery-Basics 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 My Profile ${profileImgHtml} My Profile Edit Profile My Courses Join Community Transactions Logout Like