Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some jquery plugins not working with new version of jquery library

I have a question about jQuery Plugins . I am using a checkbox styling plugin ,plugin using the jQuery lib version 1.4.2 and it works perfectly. But when I upgraded to jquery 1.7.1 ,my bad,its not working, also no error in console.

Above issue faced so many times then I'd resolved with using the same jquery file along with plugin. But now I've a lot more effects in my web page and they are using latest versions of jquery, perhaps I can't revert back it to old

I am a newbie at jquery ,if this is the case it will be too difficult to debug what's happening. Any good solutions for this ,in future I should have to use jQuery? What are all the upgradation rules ?.

like image 920
Rinto George Avatar asked Mar 13 '12 11:03

Rinto George


1 Answers

In my experience, the most significant change from 1.4 to 1.7 that might cause code to break was the introduction in jQuery 1.6 of .prop() to replace some (mis)uses of .attr().

Take a look at all calls to .attr() and see if they should be replaced with .prop().

For guidance on which should be used, see http://appendto.com/blog/2011/05/jquery-161-release-executive-brief

like image 200
Alnitak Avatar answered Oct 02 '22 17:10

Alnitak