Open S8nsick66 opened 9 years ago
$('.datepicker').on('change', function () { if ($(this).attr('id') === 'datefrom') { alert($(this).val()) $('#dateto').pickadate('picker').set('min',$(this).val()); } if ($(this).attr('id') === 'dateto') { $('#datefrom').pickadate('picker').set('max',$(this).val()); } });
Not working for me
@oozrafa #233 working for me
Thanks!
Hello!
I have 2 date pickers, one is for start date and one is for end date. When I change start date, I want to set min on end date to that value. So users can't set an end date that is before the start date.
I have verified that start_picker and end_picker are correctly set (onStart). I have tried calling render, start and stop after setting but min is not changed.
Is there a way to accomplish what I want?
Thanks in advance! /Dennis