title: jquery select and exclude multiple nth-childs
body: <p>Is there a way that i can select multiple nth-childs at once like:</p>
  
  <pre><code>    $("#table").find("tr &gt; :not(td:nth-child(1,3,5))");
  </code></pre>
  
  <p>which doesn't work</p>
  
  <p>I want to select all td in each row but not for column 1,3,5 (this can be any combination).</p>
  
  <p>Is there a way to do this? I cannot assign classnames.</p>
  
  <p>thanks for any help!</p>
  
  <p>UPDATE:</p>
  
  <p>I want to search in all rows of a table, but exclude some columns.</p>
  
  <p>I have this code right now:</p>
  
  <pre><code>    elem.keyup(function() {
  
      $(options.table).find("tr").hide();
      var data = this.value.split(" ");
      var jo = $(options.table).find("tr &gt; :not(td:nth-child("+cols+"))");
  
      $.each(data, function(i, v){
  
      jo = jo.filter(":containsIgnoreCase('"+v+"')");
  
      });
  
      jo.parent().show();
      });
  </code></pre>
  
  <p>It works when I pass a single value, but i want to exclude multiple columns.</p>
  
  <p>thanks</p>