The change event is also triggered when the plugin is initialised. As I use the change event to save the chosen time, my save process runs twice.
I would opt for a separate 'init' event. The change event should only be triggered when choosing something from the drop down, or when actually typing in the field.
The change event is also triggered when the plugin is initialised. As I use the change event to save the chosen time, my save process runs twice.
I would opt for a separate 'init' event. The change event should only be triggered when choosing something from the drop down, or when actually typing in the field.