title: JQuery - Add class to every table alternate table row that doesnt contain a class name
body: <p>I have a table like so:</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;&lt;td&gt;Row 1&lt;/td&gt;&lt;/tr&gt;
  &lt;tr class="special"&gt;&lt;td&gt;Row 1&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Row 2&lt;/td&gt;&lt;/tr&gt;
  &lt;tr class="special"&gt;&lt;td&gt;Row 2&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Row 3&lt;/td&gt;&lt;/tr&gt;
  &lt;tr class="special"&gt;&lt;td&gt;Row 3&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>What I'd like to do is use the zebra pattern on every alternate row that doesnt contain the class special. I tried this but it doesnt work:</p>
  
  <pre><code>$("table tr:not(.special):nth-child(even)").addClass("alt-row");
  </code></pre>
  
  <p>This still adds it to every even row.</p>