I add a jquery path in bundle config.cs but give an below error
Create:52 Uncaught ReferenceError: $ is not defined
at Create:52
BundleConfig.cs
- public class BundleConfig
- public static void RegisterBundles(BundleCollection bundles)
- {
- //here i add a jquery path
- bundles.Add(new ScriptBundle("~/Scripts").Include(
- "~/Scripts/jquery-3.4.1.min.js",
- "~/Scripts/jquery.validate.min"
- ));
when I create a new project in mvc
then Bydefault jquery add in project see below
Create.cshtml
Create
- Name : @Html.EditorFor(x => x.name)
- @**@
Sachin SinghPosted May 7, 2021, 6:20 AM