Jquery loads the HTML sample code in the specified DIV
- 2020-03-30 01:45:21
- OfStack
Let's start with Jquery
Add JS to the page
#top_sidebar is the ID of the specified DIV
<script src="js/jquery.js"></script>
Add JS to the page
<script>
$(function(){
$("div#top_sidebar").load("top_sidebar.html");
})
</script>
#top_sidebar is the ID of the specified DIV