Tuesday, May 20, 2008

How to visible or invisible controls through Java Script....

You can visible or invisible controls with two different ways-
1) var control;
control=document.getElementById("controlId");
control.style.display="none";
control.style.display="block";

2) var control;
control=document.getElementById("controlId");
control.style.visibility="visible";
control.style.visibility="hidden";

first one work with IE,Netscape,Mozila,etc. smoothely.
second one work with IE only.

No comments: