If you do not have a datepicker onchange event, how to hang it without edits source?

Zayuzat here is such a plugin: Datedropper3 (off. the website), but this plugin there is no event to onchange. Therefore, directly after selecting a date and confirm it, can't cause I need the function.

Want after selecting a date to place a redirect on the page of the selected date.

Tell me, if the plugin has no events, is there a way to call onchange after the confirmation date selection in datepicker?

Thank you.
August 19th 19 at 23:04
2 answers
August 19th 19 at 23:06
In General, helped me, corrected the source code, if someone need Callback on submit, here's how to correct:

', { class: 'pick-submit' }) .appendTo(get_picker_els('.pick-btns'));

', { class: 'pick-submit' }) .on('click', function(){ if (!!options && !!options.submitCallback && typeof options.submitCallback == 'function') { options.submitCallback() } }) .appendTo(get_picker_els('.pick-btns'))

To use:
 submitCallback: function() {alert('hello')}
August 19th 19 at 23:08
Hang up event on the input
to which clings the datepicker.
I think that the datepicker sticks to the focus, but the fact of the selection date occurs later. When the user clicks on submit the widget, it turns out that if I'm in focus sheds its function, it will immediately work after calling the widget, but not after you confirm in the widget of the fact of the selection date. - laverna5 commented on August 19th 19 at 23:11

Find more questions by tags JavaScript