bootstrap-timepicker
bootstrap-timepicker copied to clipboard
Multiple Timepickers Created Dynamically
Hello,
I am cloning a div which contains a timepicker input. When I click on the cloned input it tries to control the first/original input.
Do I need to give each timepicker input a unique id? How would I take care of this in jQuery as when its a class I just do this:
$(function () {
$('.pick-time').timepicker({
minuteStep: 5,
showMeridian: false,
disableFocus: true,
defaultTime: 'current',
});
});
}
How would I refer to a dynamically changing selector?
Thanks.
Anyone able to help with this please?