Download jQuery 1.6

Spread the love

To simplify client-side scripting within HTML, you can use jQuery. This is an open source JavaScript library whose syntax makes it easier to navigate through documents, select DOM elements, assemble animations, handle events and of course develop Ajax applications. In addition, the functionality can be extended by using plugins. For more information, we refer you to this page. The developers have released version 1.6 with the following announcement:

jQuery 1.6 Released

jQuery 1.6 is now live and available for consumption! We’re quite proud of this release, it includes a major rewrite of the Attribute module and a number of performance improvements.

Please take this opportunity to thank members of the jQuery Team and the jQuery bug triage team for their help in getting this release out the door.

You can get the code from the jQuery CDN:
http://code.jquery.com/jquery-1.6.js
http://code.jquery.com/jquery-1.6.min.js

You can also get the code from other CDNs as well:
Microsoft: http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.min.js
(Google is still uploading their copy.)

We want to encourage everyone from the community to try and get involved in contributing back to jQuery core. We’ve set up a full page of information dedicated towards becoming more involved with the team. The team is here and ready to help you help us!

In fact, we’re already getting started working on jQuery 1.7. We’re welcoming feature proposals for jQuery 1.7. If you have any suggestions please submit them using the aforementioned form.

jQuery 1.6 ChangeLog

All of the API changes that occurred in this release can be found in the jQuery API documentation: http://api.jquery.com/category/version/1.6/

Breaking Changes

In most releases we try to main compatibility with existing code. However, there are a few cases where jQuery 1.6 may require changes to existing code:

Case mapping or data attributes

    jQuery 1.5 introduced a feature in the .data() method to automatically import any data- attributes that were set on the element and convert them to JavaScript values ​​using JSON semantics. In jQuery 1.6 we have updated this feature to match the W3C HTML5 spec with regards to camel-casing data attributes that have embedded dashes. So for example in jQuery 1.5.2, an attribute of data-max-value=”15″ would create a data object of { max-value: 15 } but as of jQuery 1.6 it sets { maxValue: 15 }.

.prop(), .removeProp(), and .attr()

    In the 1.6 release we’ve split separately 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 . 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 most cases, the browser treats the attribute value as the starting value for the property, but Boolean attributes such as checked or disabled have unusual semantics.

    For example, consider the markup . The presence of the checked attribute means that the DOM .checked property is true, even though the attribute does not have a value. In the code above, the checked attribute value is an empty string (or undefined if no attribute was specified) but the checked property value is true.

    Before jQuery 1.6, .attr(“checked”) returned the Boolean property value (true) but as of jQuery 1.6 it returns the actual value of the attribute (an empty string), which doesn’t change when the user clicks the checkbox to change its state.

    There are several alternatives for checking the currently-checked state of a checkbox. The best and most performant is to use the DOM property directly, as in this.checked inside an event handler when this references the element that was clicked. In code that uses jQuery 1.6 or newer, the new method $(this).prop(“checked”) retrieves the same value as this.checked and is relatively fast. Finally, the expression $(this).is(“:checked”) works for all versions of jQuery

Version number 1.6
Release status Final
Operating systems Scripting language, Java
Website jQuery
Download
License type GPL
You might also like
Exit mobile version