JavaScript hide/show element - Stack Overflow
https://stackoverflow.com/questions/6242976/javascript-hide-show-element
Web15 Answers. Sorted by: 598. function showStuff(id, text, btn) { document.getElementById(id).style.display = 'block'; // hide the lorem ipsum text. document.getElementById(text).style.display = 'none'; // hide the link. btn.style.display = 'none'; } <td class="post"> <a href="#" onclick="showStuff('answer1', 'text1', this); return …
DA: 6 PA: 10 MOZ Rank: 15