JQuery UI datepicker not working when bound to a class

后端 未结 2 2217
野趣味
野趣味 2021-02-19 13:24

I\'ve got this code:



     
  

        
2条回答
  •  鱼传尺愫
    2021-02-19 14:06

    Don't use hasDatepicker as your date picker's class name. Use a different name, like date_picker.

    JQuery adds the class hasDatepicker to the element that datepicker() is called on. If the element already has the class hasDatepicker, then the datepicker() function does nothing. So, just use a different class name.

提交回复
热议问题