wvega / timepicker

A jQuery plugin to enhance standard form input fields helping users to select (or type) times
http://timepicker.co
GNU General Public License v2.0
216 stars 93 forks source link

It's not working well with Jquery clone() #104

Open derikitz opened 7 years ago

derikitz commented 7 years ago

there's an issue with cloned timepickers, when one timepicker is cloned. whenever clicking the newly cloned input what happens is it consider the first or the original as the input instead of like having multiple timepickers. it acts as if cloned elements are just one.

<div class="time-input"><input type="text" class="timepicker" value="" placeholder="Select Time here"><a href="#" class="remove">x</a><a href="#" class="add">+</a></div>

YanAlex commented 11 months ago

you should, clone(), not clone(true)

Im struggling same issue