Answers for "js load inside div from file"

0

js load inside div from file

<div id="topBar">
    <a href ="#" id="load_home"> HOME </a>
</div>
<div id ="content">        
</div>

<script>
$(document).ready( function() {
    $("#load_home").on("click", function() {
        $("#content").load("content.html");
    });
});
</script>
Posted by: Guest on August-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language