[thelist] DHTML - div display.
Robert Gormley
robert at pennyonthesidewalk.com
Sun Feb 6 12:51:29 CST 2005
Hi all,
Interesting question... I have a page where there are several suppliers
listed. Some of these might have multiple branches, which can be displayed
if the user clicks a "Show all branches..." link. This should set the
appropriate div to be visible, via "display: block;" - this in itself is
fine.
What I need, though, is to be able to set all other client branch blocks to
be hidden... ie so you can only expand one element at a time.
And this needs to be dynamic. ;)
What I have is this, in structure:
<div id="contentContainer">
<div id="client1">
blah
</div>
<div class="clientExpanded" id="client1expanded">
blah
</div>
</div>
What would be a solution that would work... ideally with the ability to take
an argument, so i could do onclick='expand(this)' (actually, the this comes
to mind now, so that might not be necessary)... and that sets the
appropriate div id to display, and walks all the other .clientExpanded#s to
set them display none?
Oh, the joy, Monday morning.
Robert
________________________________________________
This mail was sent by UebiMiau 2.5
More information about the thelist
mailing list