<ul id='sub-nav'>
<li><a href='#one'>Item One</a></li>
<li><a href='#two'>Item Two</a></li>
<li><a href='#three'>Item Three</a></li>
<li><a href='#four'>Item Four</a></li>
</ul>
$("#sub-nav a[href='#one'']").click(function(){
/*Trying to figure out how to add a class named active to the list tag */
})