I want to call header.html and footer.html in every page of html using javascript. I tried the code Make header and footer files to be included in multiple html pages, but this is not working for me
Here is the same code,
<html>
<head>
<title>hi</title>
<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
<script>
$("#header").load("header.html");
$("#footer").load("footer.html");
</script>
</head>
<body>
<div id="header"></div><br />
<div id="content">
Main Content
</div><br />
<div id="footer"></div>
</body>
</html>
I downloaded jquery-1.11.1.min.js from this http://jquery.com/download/ site. Please, help me to correct this code.