I\'m trying to add dynamic active class to my main menu, but i can\'t able to achieve this,
My jquery is,
^^ same as above comment by Rory!!
, if you still need you can do
$("#navi a").live("click", function(){
$("#navi a").removeClass("active");
$(this).addClass("active")
});
If you have all the links pointing to a same page above solution works, as i see you going to traverse from one page to another this wont work.
Thanks