Torna al Thread
function ValidaForm(){
var isEmpty = false;
isEmpty = FieldValueIsEmpty(document.getElementById("Data_mangiato").value, "Inserisci la data di quando hai mangiato!!");
if (isEmpty)
return false;
isEmpty = FieldValueIsEmpty(document.getElementById("TITOLO").value, "Dai un titolo al tuo commento!!");
if (isEmpty)
return false;
isEmpty = FieldValueIsEmpty(document.getElementById("ESPERIENZA").value, "Scrivi una breve descrizione!");
if (isEmpty)
return false;
isEmpty = FieldValueIsEmpty(document.getElementById("PREZZO_PAGATO").value, "Inserisci quanto hai pagato a persona!!", "PREZZO_PAGATO");
if (isEmpty)
return false;
// se arriva qui non ci sono campi vuoti
alert("si");
document.Commento.submit();
}