This is a migrated thread and some comments may be shown as answers.

Validating date with multiple fields on page

0 Answers 88 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 06 Jun 2013, 07:34 PM
Hi,

I'm looking to validate date fields on a page, which is simple (see this JSBin from this thread).

BUT, when a page has multiple date fields on a page, things start to get wacky. See this JSBin and play around with invalid dates. The invalid message doesn't know which input to bind to, causing error messages on the wrong inputs.

Thanks for any help.

EDIT:

Simply instead of doing $("#MyForm").kendoValidator(...); targeting the date fields $(".datepicker").kendoValidator(...); resolved the issue.

Marking as 'answered'

No answers yet. Maybe you can help?

Tags
Date/Time Pickers
Asked by
Dan
Top achievements
Rank 1
Share this question
or