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