I have a select list on my modal and an input field. The select list contains the contact types like email, phone number etc. Is it possible to dynamically apply the model validation on the input field like when the user selects the email option the input field is validated for the email and if he selects the phone number the input field is validated against the provided phone number format. Is it possible to achieve by using the mvc3.net data annotation or should i go for some jquery plugins.
Add a comment
|