I have a div in which there is a datepicker. I use something like this to clone it:
mydiv = $(\'#someDiv\'); // works fine so far mydiv.find(\'input.datefie
If you call .datepicker('destroy').removeAttr('id') before cloning and then re-init the date picker it will work.
.datepicker('destroy').removeAttr('id')
This seems to be a bug with destroy since it is supposed to return the element back to it's original state.