Jquery UI Datepicker not displaying

前端 未结 21 1121
半阙折子戏
半阙折子戏 2020-12-05 18:10

UPDATE
I have reverted back to Jquery 1.3.2 and everything is working, not sure what the problem is/was as I have not changed anything else apart of t

相关标签:
21条回答
  • 2020-12-05 18:34

    Just posting because the root cause for my case has not been described her.

    In my case the problem was that "assets/js/fuelux/treeview/fuelux.min.js" was adding a constructor .datepicker(), so that was overriding the assets/js/datetime/bootstrap-datepicker.js

    just moving the

    to be just before the $('.date-picker') solved my problem.

    0 讨论(0)
  • 2020-12-05 18:39

    it's the css file in the new one doesn't work. Try to include the old 1.7.* css file on your header too, and try again.

    Also, did you try to do a .datepicker( "show" ) right after it constructed?

    0 讨论(0)
  • 2020-12-05 18:42

    I've had a similar issue with 1.7.2 versions of jQuery and jQuery UI. The popup wasn't showing up and none of the applicable suggestions above helped. What helped in my case was taking out the class="hasDatepicker" which (as the accepted answer here notes: jQuery UI datepicker will not display - full code included) is used by jquery-ui to indicate that a datepicker has already been added to the text field. Wish I found that answer sooner.

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