I have updated the plugin and release 1.2.9 with minDate and maxDate options. In your case, you need to manage with -1 for yesterday and +1 for tomorrow. Same like this you can increase the numbers to restrict the range.
So you can use “0” zero for only present date selection with minDate and leave empty the maxDate for no limit further. Or you can use number days with “+”.
Alternatively you can restrict the years range with “2017:2020”. Let me know if it works for you.
Thread Starter
MikeKJ
(@mikekj)
I ran the update and problem 1 is it immediately reverted to non PRO version
use of minDate and maxDate, like this?
$(‘#available_from, #available_to, input[name=”confirmstartdate”]’).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:”0″, maxDate:””, closeText: “”, currentText: “”, yearRange: “-0:+50”});
above had no effect do I need to drop yearRange?
Thread Starter
MikeKJ
(@mikekj)
resolved the PRO problem by re-downloading latest PRO version and re-installing
yearRange should be like 2017:2020 etc. and you may drop it if you don’t to restrict future years.
Thread Starter
MikeKJ
(@mikekj)
answer came almost instantaneously, drop yearRange and minDate/maxDate works perfectly.
This addition to the plugin makes it way more versatile and the owner/developer of it is passionate about supporting it.
Many many thanks.