I ran into this issue myself and found two things that cause "inst is undefined". Both situations typically result from using the jquery clone() method either directly or as a side effect of some jquery library:
1. If you initialize datepicker on an element that already has class "hasDatepicker", datepicker will think the initialization has already happened. 2. If you initialize datepicker on an element that has the same id as another element on the page, datepicker is prone to grab the uninitialized element by id while operating on the initialized element. Hope that helps, Nick On Dec 20 2009, 10:27 pm, Shaaa <shafraz.m...@gmail.com> wrote: > I also have the same issue... > > When i create new datepicker element with append() datepicker works > fine. But when i chose the date for new element it affects in the > first element. > > Any solutions will be appreciated. > > On Dec 8, 3:46 am, "k...@beza" <kab...@gmail.com> wrote: > > > I'musinga jQuery plugin dynamic form that allows me to add and > > remove fields to the form dynamically > > > I have a group of fields. One of these fields is a jQueryUIdatePicker. When > > I clone the group, its fields are renamed so when I > > post I receive all field groups as arrays > > > ======== > > How can I make all thedatePickerfields to work and not loose > > instance when the field names are renamed? How can I assure that every > > field keeps its instance so I don't get > > ======== > > >instisundefined > > uncaught exception: Missing instance data for thisdatepicker > > > I run this each time i add or remove a group, but doesn't work. some > > fields still give me the errors > > > jQuery(".datefieldclass").each(function() { > > jQuery(this).datepicker(); > > > });
-- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.