What’s new in jQuery 1.6
You can also get the code from other CDNs as well:
(Google is still uploading their copy.)
Along with some bug fixes, some new features are introduces in this release. These are
Case-mapping of data- attributes
.prop(), .removeProp(), and .attr()
In the 1.6 release they’ve split apart the handling of DOM attributes and DOM properties into separate methods. The new .prop() method sets or gets properties on DOM elements, and .removeProp() removes properties. In the past, jQuery has not drawn a clear line between properties and attributes. Generally, DOM attributes represent the state of DOM information as retrieved from the document, such as the value attribute in the markup <input type="text" value="abc" />. DOM properties represent the dynamic state of the document; for example if the user clicks in the input element above and types def the .prop("value") is abcdef but the .attr("value") remains abc.
In jQuery 1.6 Boolean attributes (such as selected, checked, etc.) can now be toggled by passing in true or false to .attr() to either add or remove them. For example:
$("#checkbox").attr("checked", true); // Checks it $("#checkbox").attr("checked", false); // Unchecks it
jQuery provides a mechanism for delaying the execution of the ready event (primarily for plugin authors). The API for this mechanism has been improved in 1.6, resulting in a single, simple, method:
jQuery.holdReady( true ); // Pause execution of ready event // later... jQuery.holdReady( false ); // Resume execution
In jQuery 1.6, it is ensured that the :focus selector works properly across all browsers. You can use this selector to find the currently focused element on the page (such as a form input).
You can find the complete list of jQuery 1.6 API changes
Feel free to contact me for any help related to jQuery, I will gladly help you.