Skip to content

Instantly share code, notes, and snippets.

@sanooj
sanooj / browser detect
Created September 2, 2011 09:40
browser detect for html
$(document).ready(function()
{
if ( $.browser.msie ){
if($.browser.version == '6.0')
{ $('html').addClass('ie6');
}
else if($.browser.version == '7.0')
{ $('html').addClass('ie7');
}
else if($.browser.version == '8.0')