I\'m trying to add dynamic active class to my main menu, but i can\'t able to achieve this,
My jquery is,
Your description is not very clear. By active if you mean the list-item you are hovering on then it should be something like this:
$('a.menu').hover( function () { $(this).addClass("active"); }, function () { $('a.menu').removeClass("active"); });