jonthornton/Datepair.js

start time end time not working when clone the input

Closed this issue · 1 comments

Hello!
I am trying to clone the start time and end time.
Here is my code :
$clone.find('[name="start[]"]').removeClass('ui-timepicker-input').removeData('timepicker').unbind().timepicker();
$clone.find('[name="end[]"]').removeClass('ui-timepicker-input').removeData('timepicker').unbind().timepicker();
$('.timeOnlyExample2').datepair('refresh');

When i click on start time it append time to end time input but not showing the option to select time difference in end time input.

Can you provide a working example of the problem?