I'm doing this function
<script>
function ver_endereco(){
$("tr.tr_end").toggle();
}
</script>
In this PHP code
<?php
while($row = $result->fetchArray()) {
?>
<tr class="tr_lista">
<td><?php echo $row['nome']; ?></td><td style="text-align: center;"><?php echo $row['forma_pagamento'];?></td>
<td><?php echo $row['observacao'];?></td><td style="text-align: center;"><?php echo $row['data_pedido'];?></td>
<td><input type="button" value="Ver mercadorias" onclick="ver_endereco();"/></td>
</tr>
<tr class="tr_end">
<td colspan="5">
<textarea rows="7" cols="90" disabled="disabled" style="resize:none;"><?php echo $row['mercadoria'];?></textarea>
</td>
</tr>
The problem is that the toogle effect is showing all the tr listed by the while, and I want it to show only the tr that I'm clicking with the "View_Address" button. How could I do it?