i tried many code but not successfull yet. mainly i am looking jquery ajax load page. its very simple but i can't figure out prople. see bellow sample html code. how i want.
<div class="menu">
<ul>
<li><a href="#tabs-1" id="page1">page 1</a></li>
<li><a href="#tabs-2" id="page2">page 2</a></li>
<li><a href="#tabs-3" id="page3">page 3</a></li>
<li><a href="#tabs-4" id="page4">page 4</a></li>
<li><a href="#tabs-5" id="page5">page 5</a></li>
</ul>
</div>
<div class="contentarea" id="response">
</div>
bellow is js code i tried many other also no work properly....
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
// load index page when the page loads
$("#response").load("page1.html");
$("#page1").click(function(){
// load home page on click
$("#response").load("page1.html");
});
$("#page2").click(function(){
// load about page on click
$("#response").load("page2.html");
});
$("#page3").click(function(){
// load contact form onclick
$("#response").load("page3.html");
});
});
</script>
if you guys know any good solution for that type loading page. please share with me.
thanks