set meta equiv for old ie to edge

var setMetaIeEdge = (function() { var $meta = $('meta[http-equiv]'); if ($meta.length) { $meta.attr('content', 'IE=edge'); } else { $('head').prepend($('<meta http-equiv="X-UA-Compatible" content="IE=edge" />')); } }());

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.