Error jQuery has no method ‘curCSS’

If you upgraded jQuery and found error in console log:

Uncaught TypeError: Object function (e,n){return new x.fn.init(e,n,t)} has no method 'curCSS'

This because curCSS function since jQuery 1.8 has been removed.
The solution is simple Just add the following code in your javascript file:

$.curCSS = $.css;
$.fn.curCSS = $.fn.css;

Leave a Reply

Your email address will not be published. Required fields are marked *