Please tell me how to write a condition, if all the list divs have display: none then do something, and if not all, do nothing. Now we have the following code:
<div class="line_table"> <div> </div> <div> </div> <div> </div> </div> When you click on the button, there is a search for words for a match, and to those div, which did not find a match by words, assigns style: diplay: none. I wrote this script here:
$(".bottom_line_table > div").each(function() { if ($(this).css("display") == "none") { $('.not_found_table').fadeIn('slow'); } else { } }); But it always works, even if there is a div in the list, with display: block.