JQuery UI datepicker not working when bound to a class

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

I\'ve got this code:



     
  

        
2条回答
  •  半阙折子戏
    2021-02-19 13:43

    Please check if the datepicker works if you change the class name of the input fields from 'hasDatePicker' to something else. The reason is, when add the datepicker to the input field using the below code:

    $(function() {
      $('#date').datepicker();
    });
    

    it adds the class name "hasDatePicker" to the input field. (which is the one u r using)

提交回复
热议问题