I need header and footer not to change in some webpages so this is simple ajax code I have copied from stackoverflow.com. But it is not working. Please help me.
<html>
<head>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#activities").click(function(){
$("#body").load("activities.html");
});
});
</script>
</head>
<body>
<div id="header">
<a href="#" id="#activities">Activities</a>
This is the header.
</div>
<div id="body">
<p>
This is the body.
<p>
</div>
<div id="footer">
This is the footer.
</div>
</body>
</html>