Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/09/2014, 05:09
Avatar de CHuLoSoY
CHuLoSoY
 
Fecha de Ingreso: febrero-2002
Ubicación: Ribeira (Galicia)
Mensajes: 1.900
Antigüedad: 22 años, 3 meses
Puntos: 29
Respuesta: llamar a funcion al rellenar un campo de texto dinamicamente

Código HTML:
Ver original
  1. <input type="text" id="quantity_wanted">
Código Javascript:
Ver original
  1. document.getElementById("quantity_wanted").onchange = function() {
  2.    sumar();
  3. };

Cada vez que cambie, sumar. Lo puedes hacer mientras escribe:
Código Javascript:
Ver original
  1. document.getElementById("quantity_wanted").onkeyup = function() {
  2.    sumar();
  3. };
__________________
ESQUIO Dominios y Hosting
Las mejores características con los mejores precios.