title: Identify element using multiple classes in random arrangement
body: <p>Is there a way to get the element using its classes not knowing the arrangement of classes?</p>
  
  <p>I have here a sample HTML</p>
  
  <pre><code>&lt;table&gt;
    &lt;tr class="header first test1"&gt;
      &lt;th&gt;Month&lt;/th&gt;
      &lt;th&gt;Savings&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr class="header first test2"&gt;
      &lt;td&gt;January&lt;/td&gt;
      &lt;td&gt;$100&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class="h34der third test1"&gt;
      &lt;td&gt;February&lt;/td&gt;
      &lt;td&gt;$80&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I need to get the element that has <strong>header</strong> and <strong>test1</strong> as its classes</p>
  
  <p>Options I did was the following:</p>
  
  <p>Option #1</p>
  
  <pre><code>$('.header, .test1').css('background','yellow');
  </code></pre>
  
  <p>However it is incorrect as it color all the elements that has "header" or "test1" class.</p>
  
  <p>Option #2
   I saw that this is possible</p>
  
  <pre><code>$("[class*='header first test1']").css('background','yellow');
  </code></pre>
  
  <p>But my scenario was I do not know the class "first" and the only classes I know are "header" and "test1".</p>
  
  <p>Is there a way to identify the element using multiple classes?
  Appreciate your help with this.</p>
  
  <p>Here is my fiddle I used for testing: <a href="http://jsfiddle.net/ky8d94n6/" rel="nofollow noreferrer">http://jsfiddle.net/ky8d94n6/</a></p>