
In my last post you have seen how to detect Internet Explorer 6 using Javascript. If you love jQuery like I do then here is the simple snippet that you can use to Internet Explorer 6 using jQuery.
jQuery.each(jQuery.browser, function(i, val) {
if(i=="msie" && jQuery.browser.version.substr(0,1)=="6")
alert("Do stuff for IE 6")
});
Related posts:

[...] You can also detect Internet Explorer using jQuery [...]
You don`t need to use “each”, so better would be –
if ($.browser.msie && $.browser.version.substr(0,1) == 6) {
…
}
Btw, latest version of jQuery (1.3.2) has issue with jQuery.browser.version detection, it reports wrong IE versions on some corrupted IE userAgent strings – http://blog.orite.com.au/tag/ie8/