Hey I need some help with some javascripting.
- {foreach key=num item=account from=$accounts}
- <div id="info">
- <div class="box round">
- <table cellspacing="1" class="data">
- <tr onclick="javascript: $('#info').hide('fast'); $('#{$account.id}details').slideDown('slow');" style="cursor:pointer;">
- <td>{$account.regdate}</td>
- <td>{$account.product}<br /><a href="http://{$account.domain}" target="_blank">{$account.domain}</a></td>
- <td>{$account.nextduedate}</td><td>{$currencysymbol}{$account.amount} {$currency}</td>
- <td><a>View Details {$account.id}</a></td>
- </tr>
-
- </table>
- </div>
- </div>
I need the info div to hide when the the table row is clicked
- <tr onclick="javascript: $('#info').hide('fast'); $('#{$account.id}details').slideDown('slow');" style="cursor:pointer;">
This is what i'm using to hide it. but because i have multiple divs called info that i need hidden it is not working currently its only hiding the first div called info. Any help would be appreciated.
Thanks.