/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function toggleShowHide(id) { var e = document.getElementById(id); if (e.style.display === "block") { e.style.display = "none"; } else { e.style.display = "block"; } }