Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Apply class to parent if child div contains class Re: Apply class to parent if child div contains class

#121293
eking
Member

Okay, I apologize for my confusion I’ve added this to my document like this but It’s not working any suggestions?

$(document).ready(function(){
$(“body”).focus(function(){
$(‘.lof-inner div.hot’).closest(‘.lof-inner’).find(‘.lof-title’).addClass(‘blinkurgent’);
$(‘.lof-inner div.hot’).siblings(‘.lof-title’).addClass(‘bold’);
});
});