Question : textBox visiblity on the client side

   var element1 = document.getElementById("txtSpine2");  
     element1.visible = !element1.visible ;

that code does not work i want to set visiblity to a asp textbox on the client side using a onkey method.

please help?

Answer : textBox visiblity on the client side

perhaps better to use

 var el = document.getElementById("xtSpine2");
 el.style.display = el.style.display == 'none' ? 'block':'none';


Random Solutions  
 
programming4us programming4us