datetimepicker is not a function jquery

前端 未结 6 1478
梦毁少年i
梦毁少年i 2020-12-17 15:37

I working with datetimepicker jquery ui, when code below html , datetimepicker is not displaying and when i inspect with firebug console it displayed an error `

6条回答
  •  清歌不尽
    2020-12-17 15:39

    Keep in mind, the jQuery UI's datepicker is not initialized with datetimepicker(), there appears to be a plugin/addon here: http://trentrichardson.com/examples/timepicker/.

    However, with just jquery-ui it's actually initialized as $("#example").datepicker(). See jQuery's demo site here: http://jqueryui.com/demos/datepicker/

       $(document).ready(function(){
            $("#example1").datepicker();
        });
    

    To use the datetimepicker at the link referenced above, you will want to be certain that your scripts path is correct for the plugin.

提交回复
热议问题