bootstrap-timepicker icon indicating copy to clipboard operation
bootstrap-timepicker copied to clipboard

Cloning bootstrap-timepicker elements

Open kabeza opened this issue 11 years ago • 3 comments

Hi I'm working with a dynamic form that contains 2 bootstrap-timepicker elements. The controls group can be cloned to add an schedule once all 3 fields are filled. When I fire the cloning, by doing:

var newRow = jQuery('.contenedorHorario:last').clone(true, true).fadeIn('slow');
var pickers = $('.ui-timepicker, .ui-timepicker-modal');
pickers.each (function () {
    $(this).timepicker ({
        showMeridian:false
    });
});

the cloning works, but when I try to choose the time in the cloned elements, the time selector from first timepickers is opened (as shown in the image).

seleccin_014

Is there a way to clone the timepicker elements so each one has its own time popup selector?

Thanks

kabeza avatar Jun 30 '14 14:06 kabeza

This seems to be a recurring issue. See #239. It seems related.

mrhota avatar Aug 10 '15 19:08 mrhota

thanks @mrhota

kabeza avatar Sep 18 '15 16:09 kabeza

How exactly did you fix this , I'm also having some issues on cloned inputs , http://codepen.io/caim/pen/pggZOx

cAstraea avatar Dec 18 '15 10:12 cAstraea