Files
freeCodeCamp/guide/english/jquery/jquery-ajax-load-method/index.md
2019-06-25 14:59:46 -05:00

371 B

title
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

$("button").click(function(){
    $("#div1").load("demo_test.txt");
});