I put those two above. But I get no intellisense with jquery.
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script>
<script src="../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
I also want to achieve intellisense in a javascript file, is it possible?
UPDATE:
jQuery(function ($) {
$(""). //no click event handler comes up
});
Simple google search came up with this:
VS2010 Tips #7: How to make jQuery Intellisense work for external JavaScript file
Short answer:
Note that you can’t use the
@sign insidejsfile like in a Asp.net-MVCViewRead this to learn how you can overcome this.