Files
freeCodeCamp/guide/english/jquery/jquery-ajax-load-method/index.md

18 lines
371 B
Markdown
Raw Normal View History

2019-06-26 03:59:46 +08:00
---
title: jQuery load() Method
---
## jQuery load() Method
The load() method loads data from a server and puts the returned data into the selected element.
**Note:** There is also a jQuery Event method called load. Which one is called, depends on the parameters.
### Example
```javascript
$("button").click(function(){
$("#div1").load("demo_test.txt");
});
```