.searchable { display: none; } .searchable[data-index*="term1"][date-index*="term2"] { display; block; }
It's slightly more code, but much more usable.
Got stuck on that for about 5 minutes. That's what I get for copy pasting :)
It's slightly more code, but much more usable.