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

后端 未结 6 1390
感情败类
感情败类 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:10

    if you are using ASP.NET MVC

    Open the layout file "_Layout.cshtml" or your custom one

    At the part of the code you see, as below:

    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
    @Scripts.Render("~/bundles/jquery")
    

    Remove the line "@Scripts.Render("~/bundles/jquery")"

    (at the part of the code you see) past as the latest line, as below:

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    

    This help me and hope helps you as well.

提交回复
热议问题