You can check out this solution by AJ. It’s pretty straightforward, just copy and paste the following lines of code.
jQuery.browser = {};
(function () {
jQuery.browser.msie = false;
jQuery.browser.version = 0;
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
jQuery.browser.msie = true;
jQuery.browser.version = RegExp.$1;
}
})();
Reference:
$.browser on jQuery 1.9.x for legacy IE detection