Short Version: Is it standard behaviour that myDiv.style.display (Javascript) returns blank when I have set that div to display:none<
myDiv.style.display
div
display:none<
My solution:
Create class .hidden
.hidden
.hidden { display: none !important; }
Javascript:
function toggleHidden(id) { var x = document.getElementById(id); x.classList.toggle('hidden'); }