Page 2 of 2

How to read the value from a Datepicker?

Posted: Sun Aug 04, 2013 11:19 am
by Ole Henrik Oftedal

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 :)


How to read the value from a Datepicker?

Posted: Mon Aug 05, 2013 5:36 am
by Kateryna Grynko