ho provato a fare così per tentare di fregare un pò la sintassi ma non ne ho ricavato nulla; eppure questa sintassi mi sembra corretta :master: infatti non mi restituisce nessun errore, come non me lo restituiva prima, l'unica cosa è che non entra nell'if:
function guestForm(){
var tot_isr = document.getElementById("tot_isr");
var tot_vig = document.getElementById("tot_vig");
var tot_bra = document.getElementById("tot_bra");
var tot_gre = document.getElementById("tot_gre");
var tot_lib = document.getElementById("tot_lib");
var tot_tri = document.getElementById("tot_tri");
var tot_mon = document.getElementById("tot_mon");
var tot_ita = document.getElementById("tot_ita");
tot_isr = parseInt(tot_isr.value, 10);
tot_vig = parseInt(tot_vig.value, 10);
tot_bra = parseInt(tot_bra.value, 10);
tot_gre = parseInt(tot_gre.value, 10);
tot_lib = parseInt(tot_lib.value, 10);
tot_tri = parseInt(tot_tri.value, 10);
tot_mon = parseInt(tot_mon.value, 10);
tot_ita = parseInt(tot_ita.value, 10);
if (!(tot_isr == tot_vig && tot_vig == tot_bra && tot_bra == tot_gre && tot_gre == tot_lib && tot_lib == tot_tri && tot_tri == tot_mon && tot_mon == tot_ita)){
alert("controlla i dati");
}
}
qualcuno mi aiuta?![]()