For example, if you wanted to update information on the page based on what category a user picks by clicking on a link, you can pass that category information through an Ajax method, and provide the results in the target element. In this article, we will cover the more common param() method.

Example

We will use the following HTML for the examples listed below. In this article, we will look at the param() method in detail.

param() Method

The jQuery Ajax param() method creates a serialized representation of an array or an object. The serialized values can be used in the URL query string when making an Ajax request. This is a common method used to send information to the back-end web server so that you will receive data back based on the information sent.

Syntax