salve a tutti, ho il seguente script di controllo del form:
<script>
<!--
if (form.checkbox1.value.length == 0){
alert ("seleziona almeno 1 opzione");
return false;
}else{
return true;
}}
//-->
</script>
<form name="form" action="" onSubmit="return isEmpty()">
<input type="checkbox" name="checkbox1" value="1">
<input type="checkbox" name="checkbox2" value="2">
</form>
la mia domanda è come modifico la seguente stringa
if (form.checkbox1.value.length == 0){
per far si che venga controllata la validità di tutte le variabili?
mi spiego meglio:
if (form.checkbox(esiste un carattere speciale da inserire qui che indichi "qualsiasi carattere"?) value.length == 0){
grazie.