El problema es el siguiente. Quiero que cuando clickee un boton el textbox desaparezca. Me funciona con el Chrome y con el firefox, pero con el IE me dice que text1 no esta definido.
Código:
alguien seria tan amable de ayudarme? <html>
<head>
<title>ocultar</title>
<script language="JavaScript">
function mostrarOcultar() {
text1.style.display="none";
}
</script>
</head>
<body>
<form>
<p>
<input name="text1" type="text" id="text1" value="alfa">
</p>
<p>
<input name="text2" type="text" id="text2" value="beta">
</p>
<INPUT type="button" value="Sign Out" onclick="mostrarOcultar();">
</form>
</body>
</html>
Muchisimas gracias.

