Why is VS2010 in ASP.NET MVC2 giving me the wrong jQuery intellisense?

In an ASP.NET MVC jQuery environment, I get methods like constructor , toString , etc.

What do I need to do to get jQuery methods like "css" and "click"?

alt text http://www.deviantsart.com/upload/tr7rto.png

If I just rightclick in a regular .htm file and open Visual Studio, it works out of the box:

alt text http://www.deviantsart.com/upload/1u0q1uf.png

+3
source share
2 answers

jquery vsdoc js - - :

<script src="../../Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>

ScottGu VS 2008 , - VS2010

http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx

+2

jQuery VSDoc ?

http://docs.jquery.com/Downloading_jQuery

": Visual Studio" . 1.4.1.

+1

Source: https://habr.com/ru/post/1759139/


All Articles