Tell me, there is such a code
<script type="text/javascript"> function hide(id) {var o=document.getElementById(id).style; o.display=o.display?'': 'none'} </script> When you click, it aligns the display to none and the second click displays the display to 0, but you need to, by default, align the display with none. And what if the element lost focus, the value was again reset to none
PS: If I set the display in the CSS table to none by default, the script takes no action.
o.display=o.display?'none': '';- confused - Dimava