I have example (js-fiddle)
I want hide all tbody elements, that doesn’t contains elements tr elements without class “day_label” and “hide”
In this exmaple i have stats for day, and i need to hide all day if there is no any record for day.
I have example (js-fiddle) I want hide all tbody elements, that doesn’t contains elements
Share
What you want is basically a CSS parent selector (
tr.hide < tbody { display: none; }), this doesn’t exist yet. (soon!) However, this can be done quite easily with a library like jQuery:CSS:
Demo: http://jsfiddle.net/SO_AMK/RqBCY/