View Single Post
Old 02-05-2010, 12:44 AM   #7 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
delayedinsanity (02-05-2010)