![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/11/2008, 13:34
|
![Avatar de hoberwilly](http://static.forosdelweb.com/customavatars/avatar246730_1.gif) | | | 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 |