Return to Snippet

Revision: 72846
at February 23, 2018 20:14 by xtine777


Initial Code
page.jsFooterInline.10 = TEXT
page.jsFooterInline.10.value  (
   $(function() {
        $('.csc-default').filter(function() {
             return $('div', this).hasClass('no-news-found');
        }).hide();
    });
)

Initial URL

                                

Initial Description
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)

Initial Title
Hide header, when news are empty

Initial Tags
jquery

Initial Language
jQuery