jQuery Load() Method

0
69

jquery-javascript Load() Method

This tutorial is all about jQuery Load() Method.

This tutorial will show you how to use Load() method in jQuery. The load() method  has the ability to load data from the other page and place it into the selected elements. This method is a bit the same with ajax.

 

 Basic Syntax:

  • url – specifies the file(url) you want to load.
  • data – specifies the data you want to send to the server.
  • callback – it execute a function after the load() method is completed.

 

Basic Example:

 

 

Here is the content of the second file: “viewme.html”:

Description: If you click all <h3> elements on the page, the load method will be executed. The data in the server (viewme.html) will be displayed in the selected element.

 

Call Back Example:

 

Here is the content of the second file: “viewme.html”:

Description: If you click all <h3> elements on the page, the load method will be executed. The data in the server (viewme.html) will be displayed in the selected element and it will alert at the same time.

output:load() method PI

 

For all students who need programmer for your thesis system or anyone who needs a sourcecode in any programming languages. You can contact me @ :
Email – [email protected]
Mobile No. – 09305235027 – tnt
Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here