I have a list as such :
<ul id="yearMenu">
<li>Select a year</li>
<li><a href="AJAX/2010PR.html">2010</a> |</li>
<li><a href="AJAX/2009PR.html">2009</a> |</li>
<li><a href="AJAX/2008PR.html">2008</a> |</li>
<li><a href="AJAX/2007PR.html">2007</a> |</li>
<li><a href="AJAX/2006PR.html">2006</a> |</li>
<li><a href="AJAX/2005PR.html">2005</a></li>
</ul>
below that in another container is this div:
<div id="tableContent" class="tabWrapp"></div>
and the following load function:
$("#ul#yearMenu li a").click(function() {
var $parent = $(this).parent();
$parent.addClass("selected").siblings().removeClass("selected");
var href = $(this).attr('href');
$("#tableContent").load(href + " #tableContent ", function() {
//need to do something here?
});
});
but all links open in another page. what do I need to do to get this to load in the #tableContent div?