Ole Henrik Oftedal
Posts: 0
Joined: Thu Apr 19, 2012 4:52 pm

How to read the value from a Datepicker?

The solution is to name the date field first like Don suggests:

Don Kerr, doubletaketech.com 1 month ago
I got it working by setting the id property of the input child of the datePicker, then using that id for the validation.

I do this in my page load setupValidation() function:

$("[name='startDate']").find('input').attr('id','inputStartDate');

then on submit of of the form, this now works to validate.
$("#inputStartDate").require('required');

Never give up :)

Return to “Issues”