How to check if any of the li's are selected or not?
<pre><code>&lt;div id='id'&gt;
 &lt;ul id='ul'&gt;
  &lt;li id='1' class=""&gt;a&lt;/li&gt;
  &lt;li id='2' class=""&gt;a&lt;/li&gt;
  &lt;li id='3' class=""&gt;a&lt;/li&gt;
  &lt;li id='4' class="select"&gt;a&lt;/li&gt;
  &lt;li id='5' class=""&gt;a&lt;/li&gt;
 &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>How do I know if any of the <code>&lt;li&gt;</code>s have a <code>select</code> class? If found, how do I remove that class?</p>
