title: Hide parent if all children are not visible jquery
body: <p>I am trying to use coffeescript to hide the title of the group with if all the li's under it are hidden, but this doesn't work. The log tells me that even when each li has <code>display:none</code> it is still visible. (i.e. this is selecting all lis, when it should only be selecting those that are visible)</p>
  
  <pre><code>filterGroups = () -&gt;
    $('.group').each (idx, item) -&gt;
      list = $(item).find("ul.bordered-list li:visible")
      console.log list.length
      if list.length == 0
        $(item).hide()
      else
        $(item).show()
  </code></pre>
  
  <p>The HAML structure looks like this:</p>
  
  <pre><code>ul.bordered-list
    li.group
      h3.group-name-header
      ul.bordered-list
        li
      ...
    ...
  </code></pre>