Ver Mensaje Individual
  #58 (permalink)  
Antiguo 11/11/2008, 13:34
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 16 años, 7 meses
Puntos: 2
Respuesta: Envio de mensaje js al no haber stock disponible

Hola David una consulta, y como implementaria esto
function checked(valor1,valor2) {
for(i=0;i<valor1.length;i++){
if(valor1[i].value>valor2[i].value){
alert("stock insuficiente");
return false;
}
}
return true;
}
cuando el stock sea insuficiente y que se diriga (un focus) al primer campo de texto que dio false...gracias