jQuery load() method
What is jQuery load() method()

The jQuery load() method data from a server and puts data to HTML element.



URL which we want to load(Required)

data is querystring key and value which we want to send to server(Optional)

callback method call when load method is completed(Optional)

Example of Load() method



<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>










<div id="mydiv">When we click the test.php data will be loaded</div>

<button>Click Here</button>