Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hide element js

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';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hide #element #js
ADD COMMENT
Topic
Name
6+2 =