title: How to check whether selectbox contains any option with specific class?
body: <p>In jQuery, how can I check that a selectbox contains a specific class or not? For example, in the below code snippet, I want to check whether the selectbox with id "customerIds" contains any option with class "C" or "D".</p>
  
  <pre><code>&lt;select id="customerIds" onchange="doOperation()"&gt;
      &lt;option value="default"&gt; Start..&lt;/option&gt;
      &lt;option value="1" class="A"&gt; 1&lt;/option&gt;
      &lt;option value="2" class="B"&gt; 2&lt;/option&gt;
      &lt;option value="3" class="C"&gt; 3 &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>