02-05-2010, 12:44 AM
|
#7 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Sigh, just thought this might also be what you may need (even simpler if it is!):
javascript Code:
$(function(){ $('.parent a').click(function(e){ e.preventDefault(); $('+div.child', this).toggle(); }); });
html Code:
<div class="parent"> <a href="#">Click to open child of A</a> <div class="child"> Child of A </div> </div> <div class="parent"> <a href="#">Click to open child of B</a> <div class="child"> Child of B </div> </div>
and with that, Im off to bed!
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|