Jquery datepicker not working with nested forms rails 3

Hi people

I have a problem with the Jquery “Datepicker”.

If I use datepicker in a simple-form, I have no problem… but I need
to use it in a nested form that add fields dynamically, and everytime
I add new fields I have a field that needs to use datepicker.

I’ve reading the web, and many people have the same problem, but
nobody get a solution for this issue

Could you help me??

On Tue, Aug 30, 2011 at 12:02 AM, Angelo C. [email protected]
wrote:

Hi people

I have a problem with the Jquery “Datepicker”.

you should ask in a jquery group/forum

If I use datepicker in a simple-form, I have no problem… but I need
to use it in a nested form that add fields dynamically, and everytime
I add new fields I have a field that needs to use datepicker.

try calling the datepicker method on the field everytime you add it. if
you’re
storing the field in a variable, then just call variable.datepicker()
after
you add
the field to the page.

To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.