Upgrading jQuery version 1.4.2 to higher version
I have been using开发者_StackOverflow中文版 jquery 1.4.2. I would like to use higher versions (jquery 1.4.3, 1.5 1.6 ). Recently jquery relased 1.6. So please let me know the changes that I need to do to upgrade version 1.4.2 to 1.6.
Actually, don't use 1.6, use 1.6.1.
In 1.6 they introduced the prop() function which is meant to replace attr(), in some cases.
It wound up breaking a lot of previously working code, so in 1.6.1 they allowed the use attr(), as well as prop().
See further details here.
Probably nothing. If your script isn't too complex, just update the jQuery version and check the browser console.
If you would like to, check out the changes.
精彩评论