1

I am using MVC 3 and validating my HTML helpers on my form against the model using data annotations. If I want to add, for example, some JQuery UI elements to my form such as a datepicker, would I be able to validate them against my model, or would I need to do client side validation?

2 Answers 2

2

You can use JQuery for validation on the client side and use DataAnnotation on the server side.

You can also use the Open Source DataAnnotation for Date.

Sign up to request clarification or add additional context in comments.

1 Comment

Do you have an example of how to bind the JQuery control to the model?
0

would I be able to validate them against my model?

Yes... why won't you try?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.