Move the event trigger after the DOM has changed

This way the information in the DOM can be used as well to check the state of the timepicker