title: jQuery Find class when class attributes contain multiple class names (class="classA classB classC")
body: <p>I have a div structure like this [simple menu]:</p>
  
  <pre><code>&lt;div class="float menuA"&gt;
      &lt;div class="float selected"&gt;&lt;/div&gt;
      &lt;div class="float default"&gt;&lt;/div&gt;
      &lt;div class="float default"&gt;&lt;/div&gt;
      &lt;div class="float default"&gt;&lt;/div&gt;
  
      &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I click on any div with a classname of "default" I would like to:</p>
  
  <ol>
  <li>Use <code>.removeClass().addClass()</code> to swap the class called "selected" to "default"</li>
  <li>Update the recently clicked div (with class=="default") to class=="selected"</li>
  </ol>
  
  <p>This approach works fine when the class tags contain exactly ONE classname (for example: class="default" and class="selected") but when there is a space seperated list of classnames within a single class tag, things dont go so smoothly.</p>
  
  <p>Question:
  How do I find the element with class=="selected" when there are multiple classnames within a single tag?</p>
  
  <p>Any help appreciated guys....</p>