In this article I will explain with an example, how to solve the error occurring in jQuery i.e. Uncaught TypeError: Cannot read property 'msie' of undefined.
The error Uncaught TypeError: Cannot read property 'msie' of undefined occurs when newer versions of jQuery are being used.
 
 
Cause
The error Uncaught TypeError: Cannot read property 'msie' of undefined is occurring in newer versions of jQuery as jQuery 1.9 onwards the $.browser property has been removed from the library.
jQuery Uncaught TypeError: Cannot read property 'msie' of undefined
 
 
Solution
The solution to this problem is to use multiple versions of jQuery i.e. older and newer version simultaneously so that you can upgrade as well with the old version $.browser property can be still accessed.
You can easily use multiple jQuery versions by making use of jQuery noConflict function, please refer the following article for more details jQuery noConflict: Using multiple jQuery versions on the same page.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
    var $j = $.noConflict(true);
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
    if ($j.browser.msie) {
        alert("This browser is Internet Explorer.");
    } else {
        alert("This browser is not Internet Explorer.");
    }
</script>
 
 
Browser Compatibility

The above code has been tested in the following browsers.

Internet Explorer  FireFox  Chrome  Safari  Opera 

* All browser logos displayed above are property of their respective owners.

 
 
Downloads