Line 213: | Line 213: | ||
function toggleDiv() { | function toggleDiv() { | ||
− | var x = document.getElementById(' | + | var x = document.getElementById('myDIV'); |
− | x. | + | if (x.style.display === 'none') { |
+ | x.style.display = 'block'; | ||
+ | } else { | ||
+ | x.style.display = 'none'; | ||
+ | } | ||
} | } | ||
Revision as of 15:37, 15 August 2017