Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/10/2013, 14:01
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 11 meses
Puntos: 1012
Respuesta: como generar un campo calculado en un formulario

fíjate en los cambios que he realizado
Cita:
function calcula(t){
document.cuentas.elements[1].value=2*t.value;
}


<form name="cuentas">
<input type="int" name="numeropiezas0" value="0" onblur="calcula(this)">

<input type="int" name="preciopiezas0" value="0" >

<br />

<input type="int" name="numeropiezas1" >
<input type="int" name="preciopiezas1" >
</form>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}