I have an input on which I want to change the date. When the input value changes, I want to make a callback.
If I call the datepicker function (from bootstrap-datepicker https://github.com/eternicode/bootstrap-datepicker ), I can no longer connect to the change event. (Oddly enough, other events seem to be working fine)
This is what I have tried so far:
(using trunk)
events: {
'changeDate :input' : 'onUpdateField'
},
or using jquery directly
$('#Fundacion').on('change', this.onUpdateField);
If I just comment on the next line
$('#Fundacion').datepicker({
autoclose : true,
[...]
Event triggered.
On the other hand, changeDate evet is called, but only when the date is changed using the mouse or arrows. I want to catch an event when the user simply dials a different date.
(https://github.com/eternicode/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js), , "" .