Tema: concatenar
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/11/2002, 13:03
chivi
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 889
Antigüedad: 23 años, 1 mes
Puntos: 4
Mira si ésto que te hice te vale para orientarte a lo que deseas hacer:
<html>
<head>
<script>
function Formulario(form){
if(form.valores.value == 1){
form.valores2.value = "Uno";}
else if(form.valores.value == 2){
form.valores2.value = "Dos";}
else if(form.valores.value == 3){
form.valores2.value = "Tres";}
else{
form.valores2.value = "Error";
}
}
</script>
</head>
<body>
<form name=form>
<input type=text name="valores">
<input type=text name="valores2">
<input type=button value=Calcular onclick="Formulario(this.form)">
</form>
</body>
</html>


Saludos!