I have a menu bar with 3 links. When you click on those links, i want the content to change in the main div. The links will be to 3 different files. one of them is an html file and the other 2 are php files. I dont really know javascript, but this is what i have so far:
<ul id="nav">
<li><a href="#" id="link1" onclick="changeDiv('1')">View Records</a></li>
<li><a href="#" id="link2" onclick="changeDiv('2')">Enter Information</a></li>
<li><a href="#" id="link3" onclick="changeDiv('3')">View Upcoming</a></li>
</ul>
the javascript that i have is:
<script type="text/javascript">
function changeDiv(link)
{
var contentDiv = $('#content');
if (link == '1')
contentDiv.html();
if (link == '2')
contentDiv.html();
if (link == '3')
contentDiv.html();
}
</script>
and from there i have tried a bunch of different things, but now im stuck. What format does it all need to be in?