The smart hints of jquery in vs2008
1 install VS2008SP1 patch
To make sure that your vs2008 has a SP1 patch, in Vs2008 's Help about, if installed SP1, will appear "version 3.5 SP1", no installation of course, only "version 3.5."
If it is not installed you can download SP1 here.
2 Install vs 2008 Patch KB958502 to support "-vsdoc.js" IntelliSense files.
This patch causes Visual Studio to find out if an optional "-vsdoc.js" file exists when a JavaScript library is referenced, and use it to drive the JavaScript IntelliSense engine if it exists. These annotated "-vsdoc.js" files can contain XML annotations that provide a help document for JavaScript methods, as well as additional code IntelliSense hints for dynamic JavaScript signatures that cannot be inferred automatically.
You can find out the details of the patch in "here". You can download the patch at "here" for free.
3 You must refer to the Vsdoc version of the jquery library
Copy Jquery-1.4.2.js and jquery-1.4.2-vsdoc.js to the same file directory
Referencing jquery files <script type= "Text/javascript" src= "Scripts/jquery-1.4.2.js" ></script>
You can enter $ (). Try to see if there is a smart tip!
If there is no smart hint, CTRL+SHIFT+J update! Also note that the previous JavaScript has no errors, if there are errors will not appear smart prompts, and ctrl+shift+j after the list of errors will be prompted.
jquery Smart tips in JS files
Add the following code to the JS file:
<reference path= "Jquery-1.4.2.js"/>
Then ctrl+shift+j update and then $ ()., see if there's a smart tip!
I implemented the above method of jquery in the VS2008 and JS file Smart Tips!!