I have a form which is built dynamically using this jQuery plugin
http://code.google.com/p/jquery-dynamic-form/
When I duplicate a div, all the fields in the div are duplicated, and -as plugin docs state- brackets are added to the field name
I use also jQueryUI. I use the datePicker plugin
$("#myDynDateField").datepicker();
It works fine when there's only 1 instance of this datePicker field. When I duplicate the whole div, the datePicker field is also duplicated, and errors begin
inst is undefined uncaught exception: Missing instance data for this datepicker
1) How can I use a jQuery selector that covers all the duplicated fields also?
2) How can I make sure that every duplicated datePicker field will have its right instance, etc.?
Thanks a lot in advance,