Posted By

xtine777 on 02/23/18


Tagged

jquery typo3


Versions (?)

Hide header, when news are empty


 / 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)

  1. page.jsFooterInline.10 = TEXT
  2. page.jsFooterInline.10.value (
  3. $(function() {
  4. $('.csc-default').filter(function() {
  5. return $('div', this).hasClass('no-news-found');
  6. }).hide();
  7. });
  8. )

Report this snippet  

You need to login to post a comment.