TypeError: 'undefined' is not an object (evaluation "$ .browser.msie")

Possible duplicate:
jQuery last $ .browser

An error occurred with jQuery 1.9 and $ .browser; It returns 'undefined' for any $ .browser; function. What have I done wrong?

TypeError: 'undefined' is not an object (evaluation "$ .browser.msie")

I am using the following code:

setTimeout(function(){if($.browser.msie){$('.ovy').animate({top:"0"},ct);
+5
source share
3 answers

$.browserhave been removed from 1.9 . You can use jQuery Migrate for support $.browser.

+14
source

I solved this problem like this

if(navigator.appVersion.indexOf("MSIE") !== -1){
    // Only MSIE will evaluate this code
}
+7
source
+2
source

All Articles