How to Limit The Range of Date Picker to Only One year (For ex 2015)
Can some one please let me know how I can force jQuery UI Data Picker to loop only in one specific year months? I only would like to enable users select dates from Jan 1 , 2015 until end of year and again if they click on month changing button the Calende starts over from Jan First?
I already tried thses
- $('#example1').datepicker({
- maxDate: new Date(2015, 11, 31)
- });
- $('#example1').datepicker({
- yearRange: new Date().getFullYear() + ':' + new Date().getFullYear()
- });
but didnt get the result.
Thanks