- Joined
- May 30, 2007
- Messages
- 2,872
Show 1
Show 2
This one never shows:
I would do this in the page:
and in the script:
You should collapse it so that it doesn't take up so much space when hidden.
Show 2
Now hide 1.
This one never shows:
Unreachable
I would do this in the page:
Code:
<input onclick="showhide(this);" value="Title" type="button"><div style="visibility:collapse;">
<div>
Text
</div>
</div>
Code:
function showhide(button){
var target = button.nextSibling.style;
target.visibility = (target.visibility == "visible") ? "collapse" : "visible";
}
Last edited by a moderator: