How can we include files inside html, like how we usually include files in Php.
<?php include "nav.php";?>
You can use jQuery:
HTML
<div id="container"></div>
jQuery
$("#container").load('somepage.html');
Learn more about the load
function and what more you can do with it in the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With