I'm trying to create a drop down menu similar to what you would see with a 'ul'.
The difference being I want to do it with a table.
When the page loads I have td's with their 'display' attribute equal to 'none'. This hides the td for me.
The problem is in the javascript below.
function displayMenuOptions() {
var _1 = document.getElementById("1");
var _2 = document.getElementById("2");
var _3 = document.getElementById("3");
_1.setAttribute("style", "display : block");
_2.setAttribute("style", "display : block");
_3.setAttribute("style", "display : block");
}
This function is being fired by a mouseover on another td with an 'a' child element.
This javascript is not displaying the td's I originally had hidden.
Ideas?