Line 6: | Line 6: | ||
toggle between hiding and showing the dropdown content */ | toggle between hiding and showing the dropdown content */ | ||
function myFunction(id) { | function myFunction(id) { | ||
− | document.getElementById( | + | document.getElementById(id).classList.toggle("show"); |
} | } | ||
Revision as of 06:37, 27 October 2017