 
			
				15/02/2002, 14:40
			
			
			     |  
        |     |    |    Fecha de Ingreso: abril-2001  
						Mensajes: 203
					  Antigüedad: 24 años, 6 meses Puntos: 0     |        |  
  |      Ayuda con este codigo por favor!!!        Les anticipo que de JS no se nada. 
Baje este codigo de la web y funciona pero solo para una opcion y mi idea es que sea para todas las que esten listadas.   
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
</head> 
<body>   
<script> 
function doIt() 
{ 
document.getElementById("abc").elements[0].value="1000"; document.getElementById("abc").busemail.  value="1000"; 
} 
</script> 
<div id=business> 
<form id=abc name=businessform> 
<input type=text name=firstone onChange="doIt()"> 
<input type=text name=busemail> 
</form> 
</div> 
<HR><a href="javascript:doIt()">click to do it</a> 
</body> 
</html>   
Insisto, esto funciona, al colocar en el primer input 1000, en el segundo aparece 1000. Lo que estoy buscando es poder agregar mas opciones a ese codigo algo asi como...   
</head> 
<body>   
<script> 
function doIt() 
{ 
document.getElementById("abc").elements[0].value="1000"; document.getElementById("abc").busemail.  value="1000"; 
document.getElementById("abc").elements[0].value="2000"; document.getElementById("abc").busemail.  value="2000"; 
document.getElementById("abc").elements[0].value="3000"; document.getElementById("abc").busemail.  value="3000"; 
} 
</script> 
<div id=business> 
<form id=abc name=businessform> 
<input type=text name=firstone onChange="doIt()"> 
<input type=text name=busemail> 
</form> 
</div> 
<HR><a href="javascript:doIt()">click to do it</a> 
</body> 
</html> 
etc...   
Espero haberme explicado y que alguien me pueda ayudar.   
Saludos               |