I'm not sure if you use $.clone() to "duplicate" your elements, but if so, the problem may arise due to the transition to the true flag. e.g. $('div#id').clone(true) . This clones the element, as well as the events associated with it (and these are children). However, using this jquery ui element can mess up a few things, so it's best to override the ui info element after duplicating it.
Most likely, you do not control this granularity. More or less, you run into problems because jqueryui does not know about these duplicate form fields. I would suggest deleting the "cheated" version of the datepicker field and replace it with a new datepicker field.
Something like that:
// code to duplicate form // ... // Now replace the element with one just like it but without any events $('#newDupedForm') .find('.datefield') .replaceWith( $(this).clone(false).datepicker(options) );
This should get rid of any references to the old jquery ui datepicker from another element and create a new instance, however if there is something missing for me, you can always create an input element from scratch and do replaceWith with this.
source share