Datepicker onSelect Not Firing
问题 I have a date picker but onClose and onSelect will not fire. The code is in document.ready so i know its initialized. $('#DateRangeTo').datepicker({ beforeShow: function (input, inst) { inst.dpDiv.css({ marginTop: -input.offsetHeight + 'px', marginLeft: input.offsetWidth + 'px' }); }, format: "dd/mm/yyyy", startView: 1, //daysOfWeekDisabled: "3,4", autoclose: true, todayHighlight: true, //onClose: function (dateText, inst) { alert("here"); } onSelect: function (dateText, inst) { alert(