jQuery serialize() method basically use for URL-encoded purpose. Please see below example:-

<!DOCTYPE html>  
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>    
<form action="">  
  First name: <input type="text" name="Fname" value="jai"><br>  
  Last name: <input type="text" name="Lname" value="puri"><br>  
<div class="result"></div>  

Result:- Fname=jai&Lname=puri

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.