Anonymouse Posted February 14, 2011 Share Posted February 14, 2011 I'm trying to change an element's visibility using JavaScript. The code I have now is var tooltipDiv = document.getElementById("tooltip"); tooltipDiv.style.display = "inline"; BUT IT DOESN'T DO ANYTHING I've tried in firefox and chrome, and used the developer tools in chrome to make a breakpoint and stuff to see if I can debug it... But it seems that <element>.style.display does not exist until I create it. Does anyone know how I would do this? Link to comment Share on other sites More sharing options...
Recommended Posts