Original post: Why doesn't this simple script work?
if ($('#navigation > ul > li > ul > li > a').hasClass('.active')) { $(this).parent().parent().parent().addClass(".active"); }
if ($('#content h1').hasClass('aktiv')) { ...
Yet another head scratcher, this one! Why does everything in the below work, except for the ONE addClass() line?
var arr = ['1000','1001','1002','1003','1004','1005'], allarr = 0; $.each(arr, function(i, value) { ...
This is what I have. The li has a class of current but for some reason it's not adding the class.
if (jQuery("#sidebar li").hasClass("current")) { ...