开发者

jQuery Date Range Picker latestDate is not working?

im using this jQuery Date Range Picker and im trying to limit the user for choosing a date in the future in the picker. i tried using latestDate but its not working what is the right way to this ?

   jQuery_1_6("#dateRange").daterangepicker({
                earliestDate: Date.parse('1/1/2009'),
      开发者_如何转开发          latestDate:Date.parse('today'),
                presetRanges: [
                    {text: 'Last 7 days', dateStart: 'Today-7', dateEnd: 'Today' },
                    {text: 'Last 30 days',dateStart: 'Today-30', dateEnd: 'Today'},
                    {text: 'Last 90 days',dateStart: 'Today-90',  dateEnd: 'Today'}
                ],
                onClose: function() {  }, 
                presets: {
                    dateRange: 'Date Range'
                }
            });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜