I know this question has been asked several times but I am experiencing problem with this. I want to append my index.html file with contents of otherpage.html
My code for index.html is
<html>
<head>
<script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$.get("otherpage.html", function (data) {
$("#appendToThis").append(data);
});
});
</script>
</head>
<body>
<div id="appendToThis"></div>
</body>
And my code for otherpage.html is
<p>This is second page.</p>
When I open Index.html I see a blank white page. Can anyone please point out where the mistake is..Thanks in Advance