added jQuery load() Method (#31453)

This commit is contained in:
mariannebunyi
2019-06-26 03:59:46 +08:00
committed by Tom
parent f267d2a61b
commit 60ae1845cb

View File

@ -0,0 +1,17 @@
---
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");
});
```