Hide tr and td using jquery
<p>I want hide tr and some td on click on a tag, I have made a function which is not hiding last tr, now i want to hide 1,2,3 and only 4 and i want to show 5,4a and 4b. <a href="http://jsfiddle.net/hvFRY/" rel="nofollow">Fiddle</a></p>

<pre><code>&lt;head&gt;
&lt;script type="text/javascript"&gt;
$(function(){
$('a').click(function(){
$('tr').not(':last').hide()
})
})
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table width="664" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4a&lt;/td&gt;
&lt;td&gt;4b&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;a href="#"&gt;hide&lt;/a&gt;
&lt;/body&gt;
</code></pre>
