jquiry validation is very easy... it just gives a notification... i will post some code here....check it
function ValidateControls()
{
if(document.getElementById("ctl00_MainContent_txtFirstName").value == "")
{
alert('Please Enter First Name');
document.getElementById("ctl00_MainContent_txtFirstName").focus();
return false;
}
if(document.getElementById("ctl00_MainContent_txtLastName").value == "")
{
alert('Please Enter Last Name');
document.getElementById("ctl00_MainContent_txtLastName").focus();
return false;
}
}
the above code having two
validations
frst name and last name
if u enter the
firstname and click the submit button then it will show the alert box with contents of enter the last name... then only the submisstion should be performed...