This is simple, but I don’t get it as I want it! I want to change the background of li tag when there is a link inside with the class current. I made this, but it only change the background of the link. Help preciated!
$("li a.current").css('background-color','yellow');
When
ais direct child ofli, try