How to enable JQuery intellisense support in MVC?

 Posted by Sumank on 5/15/2013 | Category: ASP.NET MVC Interview questions | Views: 7337 | Points: 40

By default, visual studio doesn't provide Jquery intellisense support, but it can be achieved by adding vsdoc.js file to razor view.

<script src="~/script/jquery-1.7.1-vsdoc.js" type="text/javascript"></script>

No te : If statement prevents the rendering of script tag into the Html source code and it used only by visual studio for Jquery intellisense support.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response