title: jquery - get all td's in a table except those in the first two columns?
body: <p>How do I retrieve the <code>td's</code> in a <code>tr</code> where the <code>td</code> index (within the row) is not 1 or 2? That is, I want to skip the first two columns. The following code gets the job done but is there a better way to do it? I'm thinking <code>(td eq(0) || eq(1))</code> something like that.</p>
  
  <pre><code>  $("#time-entry tr").each(function () {
              var trId = $(this).attr('id');
              $(String.format("#{0} td input[id^=txt]", trId)).each(function () { //rewrite
                  var tdIndex = $(this).index();
                  if(tdIndex != 1 &amp;&amp; tdIndex != 2) {
  
                  }
              });
          });
  </code></pre>