Menu
I’m having a bit of trouble hiding and unhiding a DIV by clicking on a link.
I thought the syntax was…..
<DIV NAME=mydiv>
This is my DIV
</DIV>
<A HREF=’#’ onClick=”document.mydiv.style.visibility = ‘hidden’;”>Hide it</A>
<A HREF=’#’ onClick=”document.mydiv.style.visibility = ‘visible’;”>Show it</A>
….but it does not work. What have I missed?
A link to a dHTML resource would be enough.
Thanks