0 votes
in JQuery by
Describe the use of the param() method in jQuery?

1 Answer

0 votes
by

The param() method outputs a serialized representation of an object or array.

For example:

student = new Object();

student.name = “Mary”;

student.marks = 67;

$("div").text($.param(student);

When an event occurs that calls this code, the method will give the following output:

name=Mary&marks=67

...