I have a menu of list items in the left 'div' of my web page. I am currently selecting one of the list items and opening a new web page.
I would like to have the content displayed in my center 'div' when the list item in the left 'div' is selected.
How can I accomplish this?
I have the list items in 'col2' (on the left) and I'm posting the html page to 'col1' (in the center). This will currently only post one of the html pages (if I could get it to work). So, I need to fix this script and modify it to load one of three html pages.
Script:
<script type="text/javascript">
$(document).ready(
function(){
$('a.openInThisPage').click(
function(){
$('#col1').load('.\listOfServices.htm');
return false;
});
});
</script>
Html:
<div class="col2">
<!-- Column 2 start, left side -->
<ul class="slidedoormenu">
<li><a href="#">» List of Services</a></li>
<li><a href="#">» Pricing Stucture</a></li>
<li><a href="#">» About Me</a></li>
</ul>
<!-- Column 2 end -->
</div>