SyntaxFix
Write A Post
Hire A Developer
Questions
try this
function demoShow() { document.getElementById("but1").style.display="none"; } <input type="button" value="click me" onclick="demoShow()" id="but" /> <input type="button" value="hide" id="but1" />