I have the following in my navigation menu:
<ul>
<li><a href="#" id="folio1"><img src="img1.jpg" border="0" /></a></li>
<li><a href="#" id="folio2"><img src="img2.jpg" border="0" /></a></li>
</ul>
Which calls the jQuery:
<script type="text/javascript">
$("#folio1").click(function () {
$('#folioWrap').load('folio1.html');
});
$("#folio2").click(function () {
$('#folioWrap').load('folio2.html');
});
</script>
This should update the div #folioWrap but right now it's just showing up blank. So, I have 2 questions:
1 - Is there a fundamental problem with what I've got here that's causing the blank page load?
2 - Is there a way that I can write the jQuery so that I only need one instance and can instead pass all the info from the anchor link? That way I could have a huge number of links which reference a variety of pages instead of creating a jQuery ref for each and every one?