Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/11/2012, 09:28
gus_anomaly
 
Fecha de Ingreso: noviembre-2009
Mensajes: 381
Antigüedad: 15 años, 2 meses
Puntos: 6
Respuesta: frenar cambio en input

Aqui lo mejore pero no ha tenido efecto:

Código Javascript:
Ver original
  1. function avisarCambio(campo, cantidad)
  2.             {
  3.                 var txtConfirm = '¿Desea Continuar?';
  4.                 if (confirm(txtConfirm))
  5.                 {
  6.                     document.getElementById("cantidaditem_"+campo).focus();
  7.                 }
  8.                 else
  9.                 {
  10.                     document.getElementById("cantidaditem_"+campo).value = cantidad;
  11.                     document.getElementById("cantidaditem_"+campo).blur();
  12.                 }
  13.             }

Gracias!
Gustav.