JQuery 1.2

Today seems to be a good day for releasing new software. At least that’s what Sony and John Resig might have thought when they woke up today :-) And this is a quite special update for the popular JQuery JavaScript library.

Why special? Because it doesn’t only add new features, but also washes some stuff you might have become accustomed to from the 1.1 branch out of the core. One of these features is the XPath-like syntax for node-selection as could be use with something like


Now you have to use the XPath plugin.

If you are not motivated for changing all your code for this update, there is also a plugin for getting all the features that have been removed from the code back.

On the plus side of things 1.2 comes with some new features including 2 that saw a pre-release in 1.1.4 namely the :has selector and the .slice method. And there is among others also the .map method which should be quite self-explanatory and the .content method which returns all the child elements of a specific node (including text nodes according to the docs ). At least these are the new features I will probably use the most.

For a complete description of all the new features and a list of removed features, check out the release notes and the announcement on the JQuery blog.

comments powered by Disqus