How to check a clicked button's second class?
<p>If I have two button, one with an <code>apple</code> class and the other with an <code>apple</code> and and <code>orange</code> class:</p>

<pre><code>&lt;button class="apple"/&gt;
&lt;button class="apple orange"/&gt;
</code></pre>

<p>In my button click event for an <code>apple</code> button, how can I tell if the clicked button also has an <code>orange</code> class?</p>

<pre><code>$("button.apple").click(function(event) 
{
 var hasOrange = // ???
}
</code></pre>
