This is in an asp.net mvc3 view. The @ markup is from the razor engine. Depending on the order of these scripts, different things occur. What is the proper order? This is the order I am currently using and it seems to work. If I change the order up errors start to show up.
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")"
type="text/javascript</script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"
type="text/javascript"></script>
The order of validate and unobtrusive is unimportant, but both should come before validate.unobtrusive. The code you’ve copied here is identical to the MVC3 template, suggesting that’s the officially supported path.