Hiding a table row according to a value
<p>I do not find the right expression to select table rows that must be hidden according to the value ofe the cell on which the user has clicked. I have several rows similar to this:</p>

<pre><code>&lt;tr id='row2'&gt;
&lt;td class='col1'&gt;val 1&lt;/td&gt;
&lt;td class='col2'&gt;Val 2&lt;/td&gt;
&lt;td class='col3'&gt;val 3&lt;/td&gt;
&lt;td class='col4'&gt;Val 4&lt;/td&gt;
&lt;td class='col5'&gt;Val 5&lt;/td&gt;
&lt;td class='col6'&gt;Val 6&lt;/td&gt;
&lt;td class='col7'&gt;Val 7&lt;/td&gt;&lt;/tr&gt;
</code></pre>

<p></p>

<p>and different rows could have the same value on the same column. When che user clicks on a cell I wish to hide() all the cells that have a value different from the selected one.</p>

<p>I have binded my click event and in the routine I have already got the class id of the column (let say: 'col 4') clicked and the value of the cell (let say: 'val 4'). I would expect that something like:</p>

<pre><code>$('tr').not(...some expression...).contains('val 4').hide()
</code></pre>

<p>would save the day bu I have trouble to determine the proper expression. </p>

<p>have some hints?</p>

<p>Thanks</p>
