Ciao Jfk,
dovrebbe andarti bene questa funzione di controllo per il form
codice:
function Controlla(ff){
cont=0
for(x in aCombo)
if(ff.elements[x].selectedIndex>0)cont++
msg=''
if(cont<8)msg+='- Selezionare 8 posizioni!\n'
if(ff.Circuito.selectedIndex==0)msg+='- Selezionare il circuito!\n'
if(ff.Pole.selectedIndex==0)msg+='- Selezionare Pole!\n'
if(ff.Best_Lap.selectedIndex==0)msg+='- Selezionare Best Lap!\n'
if(ff.Outsider.selectedIndex==0)msg+='- Selezionare Outsider!\n'
if(ff.NICKNAME.value=='')msg+='- Inserire il Nickname!\n'
if(msg!=''){
alert(msg)
return false
}else return true
}
da richiamare all'onsubmit del form così
codice:
<form name="NomeForm" onsubmit="return Controlla(this)" ....