jQuery AJAXLesson 27Free preview
jQuery Load
This lesson is part of jQuery · All levels
Summary
The load() method takes the file from the server and inserts the result into the selected element. The syntax is very concise, quite $(selector) .load(url). You can also add a name space selector with spaces, for example, only containing the #konten portion of another page.
Key points
- Load() combining request and content insertion into one method
- The content of the target element is replaced by the result of the loaded file
- The space divider selects a specific part of the resulting file
- Working with the GET method in-built
- Suitable for loading HTML pieces as part of an article
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.