First, what is Ajax
AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML)
In short, Ajax loads the data in the background without loading the entire page, and displays it on the page.
Ajax is a web development technique that creates interactive Web applications.
Second, JQuery AJAX
jquery provides multiple AJAX-related methods for requesting text from a remote server via HTTP Get and HTTP Post.
HTML XML or JSON at the same time you can load these external data directly into the selected elements of the Web page.
JQuery AJAX Load () method:
The load () method loads the data from the server and puts the returned data into the selected element.
Grammar:
$ (selector). Load (url,data,callback);
1>url: Specifies the URL to load. (Required parameters)
2>data: Specifies the query string to be sent with the request, Key/value form, (optional parameter)
function functions that are executed after the 3>callback:load () method finishes.
Introduction to JQuery Ajax