---
title: "How to use Load function in jquery."  
description: "How to use Load function in jquery."  
author: "Anonymous User"  
published: 2016-01-19  
updated: 2016-01-19  
canonical: https://www.mindstick.com/forum/33894/how-to-use-load-function-in-jquery  
category: "jquery"  
tags: ["jquery", "javascript"]  
reading_time: 1 minute  

---

# How to use Load function in jquery.

I want to use [load](https://answers.mindstick.com/qa/33737/what-is-meant-by-average-load-time) [function in jquery](https://www.mindstick.com/forum/157818/what-is-the-purpose-of-the-each-function-in-jquery-explain-with-an-example). How to use This Please help me.

## Replies

### Reply by Anonymous User

If we have the content file in another directory and \
we will have to change the parameter for the load method accordingly. This is all it takes \
to load content from an external file with jQuery and the load method.

```
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>    <title></title></head><body>     <div id="divContent">        <b>Established in 2010 and headquartered in Allahabad, MindStick Software Pvt. Ltd. Our expertise is in software product design, custom programming, database design, web design and programming and cutting edge mobile applications development.</b></div>  </body></html>  <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>    <title></title></head><script src="Scripts/jquery-2.1.4.js"></script><body>      <input id="btnload" type="button" value="LoadData" onclick="return loaddata();" />       <div id="Loaddiv" style="width:500px;"></div><script type="text/javascript">     function loaddata() {        alert();            $("#Loaddiv").load("data.html #divContent");        }  </script></body></html>
```

![How to use Load function in jquery.](https://www.mindstick.com/mindstickforums/892d2bac-b28b-44a9-9bff-9d39e6cc9ba7/images/2c5b002f-9495-4059-9133-8d523d7f9859.png)


---

Original Source: https://www.mindstick.com/forum/33894/how-to-use-load-function-in-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
