Using JQuery to find the next table row
<p>Using JQuery, how do you bind a click event to a table cell (below, class="expand") that will change the image src (which is in the clicked cell - original will be plus.gif, alternating with minus.gif) and hide/show the row immediately below it based on whether that row has a class of "hide". (show it if it has a class of "hide" and hide if it does not have a class of "hide"). I am flexible with changing ids and classes in the markup.</p>

<p>Thanks</p>

<p>Table rows</p>

<pre><code>&lt;tr&gt;
 &lt;td class="expand"&gt;&lt;img src="plus.gif"/&gt;&lt;/td&gt;
 &lt;td&gt;Data1&lt;/td&gt;&lt;td&gt;Data2&lt;/td&gt;&lt;td&gt;Data3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="show hide"&gt;
 &lt;td&gt; &lt;/td&gt;
 &lt;td&gt;Data4&lt;/td&gt;&lt;td&gt;Data5&lt;/td&gt;&lt;td&gt;Data6&lt;/td&gt;
&lt;/tr&gt;
</code></pre>
