getting hidden elements
<p>Say I have the following unordered list</p>

<pre><code>&lt;ul class="container"&gt;
  &lt;li class="item" style="display: none;"&gt;first item&lt;/li&gt;
  &lt;li class="item"&gt;second item&lt;/li&gt;
  &lt;li class="item"&gt;third item&lt;/li&gt;
  &lt;li class="item"&gt;forth item&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>how can I carry out a task only if all the items in the container are hidden?</p>

<p>regards...</p>
