<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery param() Method</h1>
<p>Click on the button to change object to serialize</p>
<button>Click Me</button>
<div></div>
<script>
$(document).ready(function(){
var obj = {
name: "Jade",
age : 18,
hair : "blonde"
};
$("button").click(function(){
$("div").text($.param(obj));
});
});
</script> </body>
</html>