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.
.firstare overriding the.selectedso you will need to update the css.firstclass isn't really needed, you can consider removing it and using $("li:first") selector for it