jQuery datepicker() Uncaught TypeError: undefined is not a function

前端 未结 5 2019
梦谈多话
梦谈多话 2021-01-11 16:04

Can anyone please help me I am struggling with this problem for the past few day. Actually I included all the necessary plugins\' but still the

$(\'#datepicke

5条回答
  •  感动是毒
    2021-01-11 16:13

    I just had this issue and solved it using $.noConflict();:

    Instead of $( '#datepicker' ).datepicker();, I used:

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

提交回复
热议问题