Home > Code > Javascript > Make Invisible label, textbox, button, div using JavaScript

Make Invisible label, textbox, button, div using JavaScript

by Spidy   on Mar 10, 2011   Category: Javascript   |  Views: 2266    |  Points: 25   |  Silver 


Below javascript sample code used to make elements invisible/visible

Make it invisible
var lblName=document.getElementById('label1');
lblName.style.visibility = 'hidden';


Make it visible
var lblName=document.getElementById('label1');
lblName.style.visibility = 'visible';





Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts