Rails 3 Nested Form - jQuery Datepicker won't load when “add a task”

后端 未结 3 1468
刺人心
刺人心 2021-01-25 08:45

I\'m using ryan bates nested form gem. - https://github.com/ryanb/nested_form

In nested form I have a textfield for jQuery datepicker.

My Problem is when I \"

3条回答
  •  [愿得一人]
    2021-01-25 09:38

    try adding the datepicker pluging after the row creation too :

    it would look like this (the function names and class names will be different of course)

    function addTask()
    {
       ......
       ......
       $("textfield-slector").datepicker(); 
    }
    

提交回复
热议问题