Monday, 15 March 2021

MVC - Fix error - JavaScript runtime error: '$' is undefined

 Watch this example on YouTube


To fix it replace layout file

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>


with 


    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/Scripts/jquery-1.10.2.min.js")
</head>

No comments:

Post a Comment