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(); }
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5