/ Published in: jQuery
Hide parent element, when child element has a specific class.
In this case:
child element = .no-news-found
parent element = .csc-default (= content element containing the news plugin with header)
In this case:
child element = .no-news-found
parent element = .csc-default (= content element containing the news plugin with header)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
page.jsFooterInline.10 = TEXT page.jsFooterInline.10.value ( $(function() { $('.csc-default').filter(function() { return $('div', this).hasClass('no-news-found'); }).hide(); }); )