Ver Mensaje Individual
  #12 (permalink)  
Antiguo 22/11/2010, 15:50
Death_Empire
 
Fecha de Ingreso: febrero-2010
Mensajes: 818
Antigüedad: 14 años, 2 meses
Puntos: 55
Respuesta: Como armar foreach

eso es javascript.
Código HTML:
<script>
function total(){
  var cant = document.getElementById("cant").value;
  var valor= document.getElementById("valor").value;

  if(cant != '' && valor !=''){
      document.getElementBy("total").value = cant * total;
  }
}
</script>

<input name="valor" id="valor" onchange="total();">
<input name="cantidad" id="cantidad" onchange="total();">
<input name="total" id="total" readonly="readonly">