Javascript
document.getElementById('menu').getElementById('line1').style.opacity = "0";
HTML
<a href = "#"><div id = "menu" onclick="menu()">
<div id = "line1">1</div>
<div id = "line2">1</div>
<div id = "line3">1</div>
</div></a>
So I am trying to make the first line disappear, but it doesn't run for some reason. Do i have something wrong with my syntax? The reason I have the additional .getElementById('menu') is because I have div id = "menuClose" to return back to the original. Unless there is another way?