JavaScript - textbox iguales

 
Vista:

textbox iguales

Publicado por Quake (2 intervenciones) el 04/02/2005 15:57:55
como puedo hacer para que al escribir en un text box, en un segundo text box aparesca lo mismo que escribi sin pulsar ningun boton
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:textbox iguales

Publicado por Flor Castagnino (10 intervenciones) el 04/02/2005 20:24:00
<html>
<head>

<script language="javascript">

function cambiar(){

document.form.texto2.value = document.form.texto1.value;
}
</script>
</head>
<body bgcolor="#ffffff">
<form name="form" method="POST" action="">
<input type="text" name="texto1" onkeyup='cambiar()'/>
<input type="text" name="texto2" />
</form>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar