title: How to add exception in this jquery code?
body: <p>How to add exception in this jquery code?</p>
  
  <pre><code>$(function() {
          $("table tr:nth-child(even)").addClass("striped");
        });
  </code></pre>
  
  <p>this code is applying on all tables.</p>
  
  <p>but for specific pages i don't want strip effect.</p>
  
  <p>I've different body id on each page.</p>
  
  <p>I want to know how to add exception for a id.</p>
  
  <pre><code>$(function() {
          $("table tr:nth-child(even)").addClass("striped");
          //I want to add exception to not to add striped class to only to page with &lt;body id="nostrip"&gt;
        });
  </code></pre>