Lets say I have a dateinput:
Code:
Then in my JS, I am connecting to that date picker as follows:
Code:
How can I then change the contents of the data picker, and the options for
Читать далее...
Code:
<xf:dateinput name="date" class="date-picker" value="{{ date($xf.time+86400, 'Y-m-d') }}" />
Then in my JS, I am connecting to that date picker as follows:
Code:
$datepicker = this.$target.find('.date-picker');
How can I then change the contents of the data picker, and the options for
minDate
and maxDate
in the JS code?Читать далее...