I am currently using this code:
<script type="text/javascript">
$(document).ready(function() {
jQuery("#navmain li").click(function(){
jQuery(this).toggleClass("selected");
});
});
</script>
It works fine BUT it’s not working for class .first … so when I select any other list item it’s working but on the first list item I’ve assigned a class called .first I need so selected to work on that too.
I need to modify the above so that it also works with:
#navmain li.first
UPDATE:
This is the code I need to modify:
Home
I need to catch the SELECTED and add some style to it.
See this live example.
It works fine for me: http://jsfiddle.net/nQdcR/