0% found this document useful (0 votes)
17 views

The JQuery Load

The jQuery load() method is a simple yet powerful AJAX method that loads data from a server and inserts the returned data into the selected element. It takes a URL as a required parameter to specify the resource to load, allows optional data and callback parameters, and is used to load content like text and HTML into a page.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

The JQuery Load

The jQuery load() method is a simple yet powerful AJAX method that loads data from a server and inserts the returned data into the selected element. It takes a URL as a required parameter to specify the resource to load, allows optional data and callback parameters, and is used to load content like text and HTML into a page.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

The jQuery load() method is a simple, but powerful AJAX method.

The load() method loads data from a server and puts the returned data into the selected element.
Syntax:

$(selector).load(URL,data,callback);

The required URL parameter specifies the URL you wish to load.
The optional data parameter specifies a set of querystring key/value pairs to send along with the request.
The optional callback parameter is the name of a function to be executed after the load() method is completed.
Here is the content of our example file: "demo_test.txt":

<h2>jQuery and AJAX is FUN!!!</h2>


<p id="p1">This is some text in a paragraph.</p>
The following example loads the

You might also like