mardi 5 avril 2016

asp.net mvc 3 Validation based on previous textbox

I am using MVC 3 in my web application. In my application, i have a user entry form. In this form i have two textbox fields namely Date of Birth and Plan Age. For that fields i need to do validation. Date of Birth will be normal date validation, which i did myself. The problem is Plan Age, it should be between age calculated from the Date of Birth and 100. I need to throw the error message, when user click tab or leaving the Plan Age textbox. I need to do the validation in the Client side. Any idea to implement it?

Aucun commentaire:

Enregistrer un commentaire