xryancat
Programmer
- Aug 26, 2007
- 6
My html is like this
Whenever someone clicks on the <span>Whatever Text</span> I want all the other divs in the list to be hidden, and that one shown. So at any given time there is always only one, or none showing.
Any help would be greatly appreciated!
Code:
<ul id="menu1">
<li>
<span>Edit</span>
<div style="display: hidden;">
Edit the Info
</div>
</li>
<li>
<span>Delete</span>
<div style="display: hidden;">
Delete the Info
</div>
</li>
</ul>
Whenever someone clicks on the <span>Whatever Text</span> I want all the other divs in the list to be hidden, and that one shown. So at any given time there is always only one, or none showing.
Any help would be greatly appreciated!