Piccola variante.
P.S.:L'input sta dentro un ciclo while di asp in cui la variabile Voto viene incrementata ogni volta di uno.codice:<input name="voto<%=Voto%>" type="text" class="prova" maxlength="3" size="2" onChange="abilitaVoto('voto<%=Voto%>');" value="0.0" onFocus="this.value='';">
Ora il problema me lo restituisce sulla funzione JS.
codice:function abilitaVoto(voto) { var valore=Trim(voto.value); for (i=0; i<valore.length; i++) if ((document.pagelle.voto[i].value!="0.0") || (document.pagelle.voto[i].value!="000") || (document.pagelle.voto[i].value!=".00") || (document.pagelle.voto[i].value!="00.") || (document.pagelle.voto[i].value!="...") || (document.pagelle.voto[i].value!="..0") || (document.pagelle.voto[i].value!="0..") || (document.pagelle.voto[i].value!=".0.")) document.pagelle.registra.disabled=false; }


Rispondi quotando