![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/11/2008, 19:08
|
![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 Bien segun lo indicado;
1. onsubmit="return checked(this.cantidad_autorizada,this.stock_dispon ible);"
2. 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;
}
algo como esto????? |