if option in select has class then add class
<p>is there a way to do: <strong>if options have class 1 and 2 then add class A</strong> in jQuery?</p>

<p>So this  : </p>

<pre><code>&lt;select class="rubrique" name="ctl00"&gt;
            &lt;option class="" value="" selected="selected"&gt;&lt;/option&gt;
            &lt;option class="1" value="1"&gt;1&lt;/option&gt;
            &lt;option class="2" value="2"&gt;2&lt;/option&gt;
           &lt;/select&gt;
</code></pre>

<p>would give me that:</p>

<pre><code> &lt;select class="rubrique" name="ctl00"&gt;
            &lt;option class="" value="" selected="selected"&gt;&lt;/option&gt;
            &lt;option class="1 A" value="1"&gt;1&lt;/option&gt;
            &lt;option class="2 A" value="2"&gt;2&lt;/option&gt;
           &lt;/select&gt;
</code></pre>
