Uncaught TypeError: $(…).datepicker is not a function(anonymous function)

后端 未结 6 1288
感情败类
感情败类 2020-12-14 07:22

I found few answers on stack overflow but still cant resolve my problem. I am running on Django but I dont think it is relevant for this error.

I try to make work my

6条回答
  •  囚心锁ツ
    2020-12-14 08:04

    You just need to add three file and two css links. You can either cdn's as well. Links for the js files and css files are as such :-

    1. jQuery.dataTables.min.js
    2. dataTables.bootstrap.min.js
    3. dataTables.bootstrap.min.css
    4. bootstrap-datepicker.css
    5. bootstrap-datepicker.js

    They are valid if you are using bootstrap in your project.

    I hope this will help you. Regards, Vivek Singla

提交回复
热议问题