function validateForm() { var x = document.forms["myForm"]["Tex1"].value; var y = document.forms["myForm"]["text2"].value; if (x == null || x == "") { alert("Error"); return false; } if (y == null || y == "") { alert("Error"); return false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)