Loading simple data
We can simply load any data with help of ajax. JQuery gives us load() method by which we can acquire it.
below is the syntax of load method.
[selector].load( URL, [data], [callback] );
URL:- it contains the url we want to load.
data :- This is a optional parameter which contains data in the form of key/value pairs which we want to send with the request.
callback:- This is also a optional parameter this specify the name of the function which we want to call ,when load() method get completed.
Below is the simple code for explaining load()method.
<div id="text-change"><h2>U will see new text after clicking on below button</h2></div>