Javascript 如何在jquery中绑定日期更改事件

Javascript 如何在jquery中绑定日期更改事件,javascript,jquery,asp.net,Javascript,Jquery,Asp.net,这是日历: <div class="element-group"> <label class="element-label with-right-addon">Collection Date</label> <div class="element-input-wrap"> <div class="input-group use-dpicker" data-date=""> <

这是日历:

<div class="element-group">
    <label class="element-label with-right-addon">Collection Date</label>
    <div class="element-input-wrap">
        <div class="input-group use-dpicker" data-date="">
            <input class="element-input date-input listen-change" id="drpNewCollectionDateSvc" type="text" > 
            <span class="input-group-addon"><i class="fa fa-calendar" onclick="$('#drpNewCollectionDateSvc').focus()" style="cursor:pointer"></i></span>                        
        </div>
    </div>
</div>

收款日期
这是我显示时间的另一个下拉列表

<div class="element-group">
    <label class="element-label with-left-addon">Collect After</label>
    <div class="element-input-wrap">
        <div class="input-group">
            <div class="input-group-addon"><i class="fa fa-clock-o"></i></div>
            <%= Html.SquareDropDownListWithId("drpNewCollectionFutureTimeSvc", (SelectList)ViewData["List_RebookCollectionFutureTimeSvc"], null, "drpNewCollectionFutureTimeSvc", new { id = "drpNewCollectionFutureTimeSvc", @class = "element-input", @Name = "drpNewCollectionFutureTimeSvc", @style = "width:70%; height:18pt; display:none;" })%>
        </div>
    </div>
</div>

我有两个下拉列表,一个是日历,另一个是时间。我想创建一个函数,其中有人试图更改下拉列表应更改的日期。

drpNewCollectionDateSvc
元素是一个输入。 因此,您可以处理
onChange
事件

代码如下:

    <input class="element-input date-input listen-change" id="drpNewCollectionDateSvc" type="text" onChange="updateSecond(this.value)"> 
function updateSecond(value){

}