title: JQuery looping through each table row
body: <p>I have the following table structure</p>
  
  <pre><code>&lt;table class="ms-listviewtable&gt;
  &lt;tr&gt;
  &lt;td class="ms-vb2-icon"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"&gt;test1&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="ms-vb2-icon"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"&gt;test2&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="ms-vb2-icon"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"/&gt;
  &lt;td class="ms-vb2"&gt;test3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I need to loop through each row then loop through each td and check if a td in a row contains the text 'test1' if so I need hide the td with class "ms-vb2-icon" within the same row.</p>
  
  <p>Can someone please give me some pointers? </p>