title: jQuery :not() with multiple class on a table row
body: <p>So basically I use jQuery for alternating row colours by selecting all the tr tags associated with the table to be coloured and then subsequently colouring them accordingly. There are certain times where I do not want a certain tr to be coloured, however, and in those cases the alternating colourization should skip over those particular table rows. For this purpose I have a class called "rowSkip" which i apply to all rows which the colourization should be skipped over.</p>
  
  <p>For months I have had this working and it works a treat... however, there has always been one problem. There are cases when I need to apply multiple classes to a table row, but also don't want it coloured. jQuery seems to have a problem with its class selector under these circumstances - either that or I'm missing something simple here...</p>
  
  <p>EG:</p>
  
  <p><code>&lt;tr class="rowSkip"&gt;</code> --> works fine.</p>
  
  <p><code>&lt;tr class="rowSkip strong someclass1 someclass2"&gt;</code> --> Does not work (still gets coloured despite the presence of the "rowSkip" class)</p>
  
  <p>Does anyone have any idea why this might be and how I might get around it short of grabbing the class attr in its entirety, doing a split by the space, and then iterating through it and checking for the presence of rowSkip?</p>
  
  <p>Code is below:</p>
  
  <pre><code>$("Table.alternate tr:not(.rowSkip)").each(function() {
  //if(!$(this).hasClass("rowSkip")) { //Also tried this, and several other renditions to no avail.
  
     $(this).addClass(i++ % 2 == 0 ? 'rowOff1' : 'rowOff2');
  //}
  });
  </code></pre>
  
  <p>Thanks,
  Mark</p>