esa*_*ncy 2 c# jquery textbox calendar datepicker
我有一个asp文本框,我已经连接到文档上的jQuery日历控件,就像这样
$('#txtPromoPrcStrt').datepick({
dateFormat: 'mm/dd/yyyy',
onSelect: function(selectedDate) { txtPromoPrcStrt_TextChanged(); }
});
Run Code Online (Sandbox Code Playgroud)
当txtPromoPrcStrt_TextChanged函数设置为其他盒某些默认值.问题是,从DatePicker中选择日期后,TextBox的OnTextChanged事件不会触发,但如果我进入文本框并从键盘输入值,它将触发.
1)为什么会这样?
2)当用户从日期选择器中选择日期时,如何才能触发事件?