problema risolto sostituendo il campo input text con una select...
ora però ho un altro problema che in javascript avevo risolto , in jquery non so da dove iniziare...
qwe è totale degli articoli
codice:
for (c = 1; c < qwe; c++) {
if(document.getElementById('articoli'+c).selectedIndex == 0 ){
alert("Seleziona l'articolo");
document.getElementById('articoli'+c).focus();
return (false);
break;
}
if(isNaN(document.getElementById(prezzo'+c).value) || document.getElementById('prezzo'+c).value=="" ){
alert("Digitare solo numeri il prezzo");
document.getElementById('prezzo'+c).focus();
return (false);
break;
}
if(isNaN(document.getElementById('qty'+c).value) || document.getElementById('qty'+c).value=="" ){
alert("Digitare solo numeri per la quantita'");
document.getElementById('qty'+c).focus();
return (false);
break;
}
}
è una porzione di una funzione check_form...
come posso fare?