Is it possible to have a hidden parent and a visible child using CSS or jQuery?
I'm attempting to make a child element visible on certain pages even if the parent is hidden.
var bodyClass = jQuery('body').attr('class');
//alert (bodyClass);
var searchTerm = 'category-mens';
var searchTerm2 = 'category-ladies';
if((bodyClass.search(searchTerm) || bodyClass.search(searchTerm2)) != -1) {
jQuery('.nav-container ul.level0 li.level1 ul.level1 li.level2 ul.level2 li.first a span').css({
'display':'block',
'position':'absolute',
'top':'500px',
'left':'500px'
});
}
Currently, I am facing issues as the li.level2 is hidden.
Thank you for your assistance.