I'm trying to figure out how to check the class of a childNode. I currently have a list like this:
<li>
<a href="#">Link</a>
<ul class="children">
<li class="current"></li>
<li></li>
<li></li>
</ul>
</li>
Previously, an additional 'active' class was being applied to a ul which contained a li.current, and I had this jQuery script which was doing the job of marking the parent li as active as well as the sibling a:
jQuery("ul.active").siblings('a').addClass('current').parent().addClass('current');
but the 'active' class is not longer being applied, so I need to check the children of any ul.children to see if any are li.current. I'm just not sure how to go about it ...