diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index d72d90a..215e43a 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -490,7 +490,7 @@ $.extend(Timepicker.prototype, { if ($buttonPanel.length) $buttonPanel.before($tp); else $dp.append($tp); - this.$timeObj = $('#ui_tpicker_time_'+ dp_id); + this.$timeObj = $tp.find('#ui_tpicker_time_'+ dp_id); if (this.inst !== null) { var timeDefined = this.timeDefined;