jonthornton / Datepair.js

A javascript plugin for intelligently selecting date and time ranges, inspired by Google Calendar.
https://www.jonthornton.com/Datepair.js
358 stars 87 forks source link

start time end time not working when clone the input #114

Closed Rajan01 closed 5 years ago

Rajan01 commented 5 years ago

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.

jonthornton commented 5 years ago

Can you provide a working example of the problem?