Ciao a tutti.
Mi sono accorto che quando, nel codice postato di seguito, tutti i checkbox della pagina web visualizzata sul browser sono in condizione CHECKED DISABLED la funzione checkedAll, se richiamata, continua a deselezionarli ed a selezionarli, rendendo i checkbox (in teoria bloccati) nuovamente disponibili.
Cosa posso fare per rimediare?
Grazie
codice:checked = false; function checkedAll (frmTest) { var aa= document.getElementById('frmTest'); if (checked == false) { checked = true } else { checked = false } for (var i=0; i < aa.elements.length; i++) { aa.elements[i].checked = checked; } } <form name=frmTest id=frmTest action="_processaCheckbox.asp" method=POST onsubmit="return (atLeastOneChecked(this));"> //CODICE ASP SEMPLIFICATO if objRS("ASSEGNATO") = "1" then Response.Write "<input type=checkbox name=chkParent" & iCount & " value=" & objRS("xID") & " CHECKED DISABLED></td>" else Response.Write "<input type=checkbox name=chkParent" & iCount & " value=" & objRS("xID") & "></td>" end if