我有绑定到文本框的daetpicker。我只是想知道什么时候我隐藏了datepicker,会触发哪个datepicker事件。
$('#datepicker-section').datepicker("hide");
以下是一些Datepicker事件:
onSelect()
onClose()
请帮我解决这个问题。我试过onClose事件它没有被解雇。
感谢。
答案 0 :(得分:0)
这里有一个如何使用onClose和datepicker - FIDDLE的例子。
在选择日期后关闭日期选择器时,会触发onClose:行之后的命名函数。
JS
$('#mydate').datepicker({
onClose: closeme
});
function closeme()
{
alert('closed');
}