jQuery UI Datepicker only respond to the first textbox

前端 未结 2 1291
自闭症患者
自闭症患者 2021-01-26 12:23

I\'m trying to create a table with multiple rows and each row has a text box for user to input the date using the jQuery UI Datepicker. The problem is that the Datepicker is onl

相关标签:
2条回答
  • 2021-01-26 13:09

    You have problem due to Same Id which conflict You can use same class name

    class='dateinput'
    

    It work's

    0 讨论(0)
  • 2021-01-26 13:14

    You are getting this problem as all rows have

    id='dateinput'
    

    You need to give them different id. Keep a counter variable and append it to id. Increase it in loop after appending.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题