$.ajax() function

*The jQuery $.ajax() function is used to perform an asynchronous HTTP request.

*$.ajax(url[, options])-The url parameter is a string containing the URL you want to reach with the Ajax call.

*$.ajax([options])- while options is an object literal containing the configuration for the Ajax request.

*The option Parameter

1-success: A function to be called if the request succeeds.

2-dataType: The type of data expected back from the server.

3-error: A function to be called if the request fails.

4-data: The data to send to the server when performing the Ajax request.

*$.ajax(). It allows you to perform Ajax request with a lot of control over how the request is sent to the server and how the response is processed.