I've looked this over so many times and I can't figure out why my script is not running AT ALL. Any help would be appreciated...
The script....
</head>
<script type="text/javascript">
$(document).ready(function() {
$('li#profiles').addClass('active');
$('#content').load('profiles');
$('nav ul li a').click(function() {
$('.active').removeClass('active');
$(this).parent().addClass('active');
var link = $(this).parent().attr('id');
$('#content').load(link);
return false;
}); // end click
}); // end ready
</script>
<body>
within the body I have this....
<nav>
<ul>
<li id="profiles"><a href="profiles">Guest Profiles</a></li>
<li id="config"><a href="config">Configuration</a></li>
</ul>
</nav>
I have this style set to see if it is working....
<style>
.active a {color : rgb(80,180,80);}
</style>
When loading my page, the profiles link is the typical blue. I'm using Chrome DevTools and see no changes in the DOM..... Also, when I click on either link, it follows the link instead of the .click.....
Thank you
-John
$('#profiles')instead of$('li#profiles')