Jump to content

Issues with hiding elements


Recommended Posts

function HideMenu {document.getElementById("Menu").style="visibility:hidden";}

When run it doesn't hide the element and the divider I am using had the id of Menu. I don't understand what's wrong. TIA.

Whenever ya don't understand what's going wrong, ya can of course go here and post ya question.But I'd also like to use some consoles to debug for yaself first to save time:Dreamweaver (can check invalid codes for ya automatically)Firefox console (Tools-Websole [ctrl+shift+k]) or go to Deirdre's Dad's profile page for more info of web consoleIE developer tool (IE-[F12])Or go to W3schools Tutorial to checkHTML DOM
FWIW, explore the different behavior caused bydisplay: none;
Glorfindel, for ya next step, ya may wanna explore that. That difference can be a good trick for using JS and HTML.HTML DOM: visibility Edited by Tin
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...