I have a jQuery code which is working fine for Chrome/Mozilla but not IE.
if ($(\"html\").hasClass(\"ie\")) { $(function(){ $(\'.green-column, .
Just do like this
if ($.browser.msie && parseInt($.browser.version, 10) > 8) { alert('IE9 or IE10'); } else { alert('Non IE9 or IE10'); }
This should work for jQuery version under 1.9. If you use 1.9+, read this thread or consider using modernizr.