If you just want the annotated jQuery file download it here: jQuery with Intellisense comments. For more about it, read on!
That will get all the p elements with the class surprise, add the class "ohmy", and then change the display to "block" with a slow animation. Go run it on the jQuery homepage. Nice, eh? The dollar function is magical. You just give it a CSS selector, and it returns jQuery objects that you can do all kinds of cool things with. Also, almost all the functions in the framework return this same jQuery object, so they are chainable like you see above.
All you have to do to use it is include it in a script reference in your page, and add a reference comment in your .js file. So in your HTML you'll have this under the head element:
Then in your.js you'll need to tell VS about the jquery-1.2.3-intellisense.js file like so:
/// <reference path="jquery-1.2.3-intellisense.js" />
Now you'll have all the intellisense goodness for jQuery available in your.js. You won't want to deploy the jquery-1.2.3-intellisense to production since it is quite a bit larger than the minified version, but for development it should work the same as jquery-1.2.3. I didn't change any of the code, although in some cases it would have made for better intellisense. Which brings me to my next point.
I'll be speaking at Boise Code Camp on March 8th about using jQuery with ASP.NET. It will be mostly an introduction, with a walk-through on changing a plain old contact form, into a fancy-schmancy AJAX one using jQuery. So if you're around stop by and say hi. This was my first blog post, and Code Camp will be my first speaking engagement so some things may still be a little rough around the edges. The nice thing about Code Camp is that you don't have to be invited to speak :)
jQuery 1.2.4 was released yesterday. I just posted the updated jquery-1.2.4-intellisense file.
jQuery 1.2.5 was released today. jQuery 1.2.4 was a bad build. I just posted the updated jquery-1.2.5-intellisense file.