Easy learning with example program codes

jQuery serialize()

Some important features of jQuery serialize() method are;

  • jQuery serialize() method creates a text string in standard URL-encoded notation.
  • It is used in form controls.
  • It serializes the form values, the serialized values can then be used in the URL query string.


$ (selector).serialize()  


<!DOCTYPE html>  
 <script src=""></script>  
<form action="">  
  First name: <input type="text" name="Mailid" value=""><br>  
  Last name: <input type="text" name="UserName" value="Jai"><br>  

Try it

JS Bin on

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki