I'm having this problem too.  When I enable datepicker on page load, with a 
jQuery collection of elements, it works fine.  When I try to enable it on an 
input field added dynamically, it doesn't work.  And, after I try to bind 
it, the input field does show that the class "hasDatepicker" has been added, 
but it doesn't do anything when I click on it.

I just grabbed 1.6rc2 to see if that helped, but same deal.

-- Josh



----- Original Message ----- 
From: "Tim Anderson" <[EMAIL PROTECTED]>
To: "jQuery UI" <[email protected]>
Sent: Wednesday, October 08, 2008 7:22 AM
Subject: [jquery-ui] UI Datepicker. How to enable it on dynamicaly added 
fields?


>
> Hello!
>
> I'm on Drupal and I'v creating form with fields for date picking. I
> managed to enable Datepicker and it works ok with the form field,
> until I add another input field dynamicaly (via JSON), after new field
> added, Datepicker degrades on all old field and doesn't appear on new
> ones. This is untill I reload page, after the page reloaded,
> everything is back to normal. I guess, I need to activate Datepicker
> each time I add new input field dynamically, but how to do this? I'm
> pretty novice in JS, so a bit confused. Need your help. Please.
>
> regards,
> Tim
>
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to