forked from DavyJonesLocker/client_side_validations
-
Notifications
You must be signed in to change notification settings - Fork 0
jQuery Plugins
bernardomendes edited this page Apr 27, 2011
·
2 revisions
If you are using jQuery DatePicker in a field and trying to validate it with Client Side Validations it wont work, because it doesn't trigger the "change" or "focusout" events from the field. To fix it just add this option on the DatePicker:
onClose: function(dateText, inst) { $(inst.input).change().focusout(); }Example:
$(".date_fields").datePicker({
onClose: function(dateText, inst) { $(inst.input).change().focusout(); },
changeMonth: true,
changeYear: true
})