I am using Zebra Datepicker and have a start date and end date. I am looking for help with code that would help me with this:
Start date should be up to today (should not be in the future) End date should be from the start of the Start date choice to today (No future date).
I started with this but cannot seem to get any further.
$(document).ready(function() {
var $zdp = $('#element').data('Zebra_DatePicker');
$('#from').Zebra_DatePicker({
direction: false,
format: 'm/d/Y',
view: 'years',
show_icon: true,
pair: $('#to')
});
$('#to').Zebra_DatePicker({
format: 'm/d/Y',
view: 'years',
direction: true
});
});