无法在jquery日期范围选择器上触发事件?
我正在使用jquery日期范围选择器,但找不到将为我提供所选日期范围的事件无法在jquery日期范围选择器上触发事件?,jquery,datepicker,jquery-events,Jquery,Datepicker,Jquery Events,我正在使用jquery日期范围选择器,但找不到将为我提供所选日期范围的事件 getValue (Function) 这是我的约会选择者的样子 html <div id="example-advanced-daterangepicker" data-step="1" data-intro="This is a date range selector!"> <i class="fa fa-calendar"></i> <s
getValue (Function)
这是我的约会选择者的样子
html
<div id="example-advanced-daterangepicker" data-step="1" data-intro="This is a date range selector!">
<i class="fa fa-calendar"></i>
<span>April 6, 17 - April 6, 17</span>
<b class="caret"></b>
</div>
四月六日、十七日至四月六日、十七日
我在URL中查找了您的解决方案
我在那里发现了一些事件,可以用来给出选定的日期范围
getValue (Function)
您可以在日期范围选择器触发的事件内调用此函数。像
.bind('datepicker-change',function(event,obj)
{
// It will fire while selecting date range from the picker. SO you can set your code here something to get selected date range
console.log(obj); // By using this object you will sure find some solution to get a range between two dates.
date1: (Date object of the earlier date)
date2: (Date object of the later date),
}
要获得更多帮助,您可以查看URL。这将对你有帮助。谢谢。粘贴一些代码或摆弄一下以分析出了什么问题?好的,我将编辑我的问题。