Jump to content


Photo
- - - - -

Скрыть пустые категории в фильтре


Best Answer Sliapy , 11 March 2013 - 15:55

Не гуру в js. Попробуйте что-то в духе:

<script type="text/javascript">
    jQuery(document).ready(function() {
	
	jQuery('.jbzoo-filter li .field').each(function() {
	    if(jQuery(this).children().length < 1) {
		jQuery(this).parent().css('display','none');
	    }  
	});
		
    });
</script>

Если я, конечно, все правильно понял. Go to the full post


  • This topic is locked This topic is locked
10 replies to this topic

#11 volkovb

volkovb
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 59
  • topics: 12

Posted 11 March 2013 - 16:14

Это я понимаю. Спасибо.
  • 0




Click to return to top of page in style!