jQuery 1.3
In jQuery 1.3 release, there have been lots of changes; the following are the major changes:
Sizzle Selector Engine: new Css selector engine has been branded – called ‘Sizzle’, which is faster than the previous one for the most commonly used selector, fully extensible, and completely standalone.
Live Events: jQuery 1.3 supports “live events” – event that can be bound to all current and future elements. Using a seamless jQuery-style API, and event delegation, for bothe easy and very fast result.
Example: this is a code example to Click a paragraph to add another:
$(“p”).live(“click”, function(){
$(this).after(“Another paragraph!”); });
Changes in The Feature: A number of new features, performance improvements, and method changes have come in this release.
* New queueing methods which you can use to manage existing queues (such as the animation queue) or construct new ones to manage completely separate workflows.
* Two new properties .selector and .context exist on every jQuery object, pointing back to the original selector and context used in the first jQuery() call.
* Attributes: .toggleclass(“className”, state) – toggle a class base upon a boolean value.
* Traversing: .closest( selector ) – located the nearest ancestor element that matches the specified selector. Extremely useful for event delegation.
* Manipulatio: HTML Injection Rewrite All of the code related to injecting HTML into a document (such as the append, prepend, before, and after methods) has been overhauled.
* CSS:Offset Rewrite * Effect: Default animations have been smoothed. Traditionally show/hide and slideUp/slideDown have only animated width, height, and/or opacity.
* Ajax: dataFilter: A function that can filter and/or parse Ajax responses.And xhr: A callback for creating the XMLHttpRequest object. It can be overriden to provide a different implementation. All of the code related to injecting HTML into a document (such as the append, prepend, before, and after methods) has been overhauled.
resource: http://docs.jquery.com/Release:jQuery_1.3#Upgrading