how to detect IE11 using jquery

internet-explorer-11, jquery

Solution

Try this:

var isIE11 = !!navigator.userAgent.match(/Trident.*rv\:11\./);
alert(isIE11);

EDIT:

Editted in a regex fix, taken from the comments. This fix works in the current version of IE11 as of 2/17/2014.

Problem

I have codes $.browser to detect the browser and upon the result some layout style is based. but now with ie 11, $.browser would give mozilla v.11. any suggestion to repair ?

Original source

Related problems