title: JQuery disable link in table row
body: <p>My jQuery is not working as expected: </p>
  
  <p>I am trying 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 disable the link defined in a td with class "ms-vb-icon2" within the same row. </p>
  
  <pre><code>$("tr:has(td:contains('test1')) td.ms-vb-icon.a#click").click(function() { return false; });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/R8fuR/" rel="nofollow noreferrer">http://jsfiddle.net/R8fuR/</a></p>
  
  <p>My code is as below...</p>
  
  <pre><code>&lt;table class='ms-listviewtable'&gt;
  &lt;tr&gt;
  &lt;td class='ms-vb2-icon'&gt;
  &lt;A onclick='GoToLink(this);return false;' href='http://www.google.com' target='_self'&gt;&lt;IMG alt='Edit' src='http://web-hub.net/wiki/skins/largepublisher/icon_edit_small.gif'/&gt;&lt;/A&gt;
  &lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&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;A onclick='GoToLink(this);return false;' href='http://www.google.com' target='_self'&gt;&lt;IMG alt='Edit' src='http://web-hub.net/wiki/skins/largepublisher/icon_edit_small.gif'/&gt;&lt;/A&gt;
  &lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&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;A onclick='GoToLink(this);return false;' href='http://www.google.com' target='_self'&gt;&lt;IMG alt='Edit' src='http://web-hub.net/wiki/skins/largepublisher/icon_edit_small.gif'/&gt;&lt;/A&gt;
  &lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;&lt;/td&gt;
  &lt;td class='ms-vb2'&gt;test3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>