-
-
Save srcoley/1262473 to your computer and use it in GitHub Desktop.
Determine browser version if Internet Explorer, and give the body element a respective class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = $.browser; | |
if(b.msie) { | |
var v = b.version.split('.')[0]; | |
$('body').addClass("ie ie" + v); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment