In my mvc 4 web application, I get the following error: "Uncaught TypeError: undefined is not a jquery.unobtrusive-ajax.js: 115 function"
on this line we have
$("a[data-ajax=true]").live("click", function (evt) { evt.preventDefault(); asyncRequest(this, { url: this.href, type: "GET", data: [] }); });
I found that many people got the same error and read messages. Almost all of them recommend reordering the scripts of jquery and others that I tried for a long time, but nothing removes this error.
I currently have css and scripts in the following order in the chapter section. Can anyone find any problems? thanks
<link href="/Content/main/css/bootstrap.css" rel="stylesheet"/> <link href="/Content/UiDatePicker.css" rel="stylesheet"/> <link href="/Content/Site.css" rel="stylesheet"/> <script src="/Scripts/modernizr-2.5.3.js"></script> <script src="/Scripts/jquery-1.9.1.js"></script> <script src="/Scripts/jquery-ui.js"></script> <script src="/Scripts/bootstrap.js"></script> <script src="/Scripts/respond.js"></script> <script src="/Content/main/js/General.js"></script> <script src="/Scripts/jquery.unobtrusive-ajax.js"></script> <script src="/Scripts/jquery.validate.js"></script> <script src="/Scripts/jquery.validate.unobtrusive.js"></script>
source share