I have a menu like this, but the mark-up doesn't have to stay this way.
<div id="menu">
<ul>
<li><a href="#item1">Item 1</a></li>
<ul>
<li><a href="#subitem1">Subitem 1</a></li>
</ul>
<li><a href="#item2">Item 2</a></li>
</ul>
</div>
And each time one of these menu items is clicked I want to load different content in a div - let's call it #content.
$(document).ready(function() {
$('#menu li').click(function(){
$('#content').load('content.txt');
});
});
Now, how do I pass which content page I want to load into #content? Thanks in advance!