Quote:
if (DOBYear < tenth) {
if (twelth != "" && tenth != "") {
if (twelth <= tenth) {
alert("Twelth Passing year Should be Greater then Tenth Passing Year !");
return false;
}
}
}
else {
alert("Tenth Passing year Should be Greater then 13 year from Birth !");
return false;
}
The above mentioned your validation code will not allow server side validation, because your code paths returning false so it will stop server side validation.You can use either client side validations or server side validation.If you have any special scenario means still you want to use both validations modify your return statement to
"return true"
Thanks,
-RG