There are two ways to use JavaScript to control the hiding and display of page controls. The difference between the methods is whether the control still occupies space on the page after being hidden.
Method 1:
document.all["panelsms"].style.visibility="hidden";
document.all["panelsms"]. style.visibility="visible";
Method 2:
document.all["panelsms"].style.display="none";
document.all["panelsms"].style.display="inline";
After method one is hidden, the position of the page is still occupied by the control, but it is not displayed. Display=static is similar to the .net verification control.
After method two is hidden, the position of the page is not occupied. It is similar to the display= of the .net verification control. dynamic