I have a menu, I want to add class "current" to the <li>
with id="home"
, so this is what I tried:
$('#main-nav ul li').attr('id').eq('home').addClass('current');
I also tried .is instead of .eq, non of them works!
How I could achieve this?
Thanks