Hello Readers,
param() method is the jquery method and is used to perform the array or jquery object in a serialization or in serialize manner.
Syntax :
$.param(object | array, boolValue)
Parameters :
object | array - this is a required parameter which specifies an array or an object to be serialized.
boolValue - this is a Optional parameter which specifies the boolean value which show the object or array are in serialized form or not.
For Example :
personObj=new Object();
empObject.name="Arpit";
empObject.age="24";
empObject.dept=IT;
$("#clickme").click(function(){
$("span").text($.param(empObject));
});
In the above code, set the text of span to
"name=Arpit&age=24&dep=IT"
0 Comment(s)