1 function ValidateCustomerName() {<br /> 2 debugger;<br /> 3 var AptName = document.forms["form1"]["count_txtAptName"];<br /> 4 // var AptName = document.forms["form1"]["txtAptName"];<br /> 5 var lblAptName = document.getElementById('<%=WebForm1.FindControl("Label1").ClientID %>')//document.getElementById('<%=Label1.ClientID%>');//document.getElementById("count_Label1");//<br /> 6 if (AptName.value.length == 0) {<br /> 7 AptName.focus();<br /> 8 lblAptName.innerHTML = "Please fill Applicant Name2";<br /> 9 return false;<br /> 10 }<br /> 11 else if (!AptName.value.match(/^[A-Za-z ]+$/)) {<br /> 12 AptName.focus();<br /> 13 lblAptName.innerHTML = "Applicant Name contain only alphabet2";<br /> 14 return false;<br /> 15 }<br /> 16 else {<br /> 17 lblAptName.innerHTML = "";<br /> 18 }<br /> 19 }<br />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)