show/hide in mysql result function in first result only
<pre><code>&lt;script type='text/javascript' src='http://code.jquery.com/jquery-1.4.2.js'&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;
$(window).load(function(){
$('#varx2').click(function() {
    $("#txt").toggle(this.checked);
});
});
&lt;/script&gt;

&lt;?php
print "&lt;table&gt;";
if($items)
foreach($items as $i){
print "&lt;tr&gt;";
print"&lt;td&gt;&lt;input type='checkbox' id='varx2' name='checkbox[]' value='$i-&gt;logi_id'/&gt;&lt;/td&gt;"; //CHECKBOX
print "&lt;td id='txt' style='display:none'&gt;$i-&gt;logi_jo&lt;/td&gt;";
print "&lt;td&gt;$i-&gt;logi_cntrlnum&lt;/td&gt;";
print "&lt;/tr&gt;";
}
print "&lt;/table&gt;";
?&gt;
</code></pre>

<p>gud day, this is a show/hide java script.. when i click or check the checkbox, the row will extent beside, the problem is only the first row/result is extending.. can u pls help me.. ty</p>
