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 ?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With