I am trying to load a part of an html file with the content from another html file using jQuery. The codes are working fine with Mozilla Firefox but not with Google Chrome or Windows Internet Explorer. In the last two browsers, the page stays as it is. What am I doing wrong?
index.html
<html>
<head>
<script src="jquery-3.1.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#clickhere").click(function(){
$("#partialdisplay").load("sourcepage.html");
});
});
</script>
</head>
<body>
<div id="header">
This is the header.
<a href="#" id="clickhere">Click here</a>
</div>
<div id="partialdisplay">
<!--Content from other page will be loaded here -->
</div>
<div id="footer">
This is the footer.
</div>
</body>
</html>
sourcepage.html
<html>
<head>
</head>
<body>
<div id="partialdisplay">
This part will be called back to index.html.
</div>
</body>
</html>