added jQuery load() Method (#31453)
This commit is contained in:
17
guide/english/jquery/jquery-ajax-load-method/index.md
Normal file
17
guide/english/jquery/jquery-ajax-load-method/index.md
Normal 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");
|
||||
});
|
||||
```
|
||||
|
Reference in New Issue
Block a user