I'm using the following script to show/hide a particular element on my website. How would I collapse these two functions into one?
(if hidden, unhide. if visible, hide)
Code:function show(){ document.getElementById("live").style.visibility="visible" } function hide(){ document.getElementById("live").style.visibility="hidden" }



Reply With Quote

Bookmarks