Cool Stuff! Microsoft has announced that they will be shipping jQuery with Visual Studio going forward. For more information on this announcement, you can refer to Scott Guthrie’s or Bertrand Le Roy’s announcement. It will be licensed under the MIT license (as it is now) and will not be altered from the original source. The one feature that will be added is Visual Studio IntelliSense which is an excellent feature to have “built-in” rather than having to “hack” it. One thing to note is that this isn’t a replacement for the Microsoft ASP.NET AJAX Library. This is simply an addition which will compliment the existing ASP.NET AJAX Library and as you can see, everything plays nice together.
The ability to get elements using CSS-type syntax. In CSS we are able to select things by class name for example,
The ability to chain methods, for example, you are able to convert something like this:
- The ability to easily add effects, such as sliding, toggling, fades, etc. We’ve all written code that would hide an show an element, for example (this example taken from http://snippets.dzone.com/posts/show/1721):
Using jQuery, this would just be:
or you can easily add cool effects, for example, the “Blind” effect is shown below…
I haven’t even scratch the surface of all the coolness found in jQuery. If you want to learn more, I would highly recommend picking up the book jQuery in Action
It’s great to see Microsoft embracing jQuery. In fact, if you read through the ASP.NET AJAX Roadmap, you’ll notice many jQuery type features being included (e.g. the $query() shortcut). I wonder if the $query() function will be removed from the plan now that we have the jQuery selector, $()? I guess time will tell.