![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/02/2003, 05:55
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
carlunchos!
Sería algo como esto? <html>
<head>
<title>Untitled</title>
<script>
a=0
function pasar(){
document.forms[0].elements[a].value=document.forms[1].elements[0].value;
document.forms[1].elements[0].value="";
a=a+1
if(a==document.forms[0].elements.length){a=0;}
mensaje.innerHTML="Introduce el Valor "+(a+1)
}
</script>
</head>
<body>
<form action="nada" method="post" name="formulariouno" id="formulariouno">
Valor 1: <input type="text" name="primero1" readonly><br>
Valor 2: <input type="text" name="primero2" readonly><br>
Valor 3: <input type="text" name="primero3" readonly><br>
Valor 4: <input type="text" name="primero4" readonly><br>
</form>
<form action="nada" method="post" name="formulariodos" id="formulariouno">
<div id="mensaje">Introduce el Valor 1</div>
<textarea cols="20" rows="4" name="segundo"></textarea><input type="button" value="pasar" onClick="pasar()"></form>
</body>
</html>
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |