datepicker on dynamically created row with inputs

前端 未结 5 654
暗喜
暗喜 2021-02-08 14:47

I have a form which has the possibility to dynamically create new row with inputs, the date input on each new row should have a datepicker. I have this almost working, but when

5条回答
  •  野性不改
    2021-02-08 15:42

    Try this, when you add a row, destroy all the datepicker instances and then rebind the datepicker after you append a new row.

    jsFiddle example

提交回复
热议问题