longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

how to limit that the dates after the current day can't be choosed? #363

Open danny5101 opened 6 years ago

danny5101 commented 6 years ago

I've modify like this in 'jquery.daterangepicker.min.js'. /*endDate: !1,*/ 'endDate' : '2017-07-21',/*限制结束日期*/ then, it doesn't show the date from 2017-07-01 to afterwards. But what the wanted result is that I need to choose date from beforewards to 2017-07-21. how should do the right thing? Thanks!