-1

I AM trying to use different libraries in ASP.Net MVC4 but almost with all I got " undefined is not a function " while using jquery functions. what is that and how can I remove it. Every id is correct and everything loaded correctly.

enter image description here

enter image description here

and

enter image description here

why it happen like this and how can i remove it.

Muhammad Usman
  • 1,366
  • 5
  • 18
  • 33

1 Answers1

0

Make sure your link references are pointed to the right place. MVC by default bundles referenced scripts and stylesheets. See BundleConfig.cs in your App_Start folder.

So if you have this:

bundles.Add(new ScriptBundle("~/js/tokeninput").Include(
                    "~/Scripts/tokenInput/jquery.tokeninput.js"));

then your _Layout.cshtml file should have this in the head section to generate the link markup:

@Scripts.Render("~/js/tokeninput")
bnice7
  • 45
  • 1
  • 7