Is it possible to use jquery in your code for one browser (eg firefox) but then disable the jquery code for another browser (eg IE10)
I have coded a site that is jquery heavy (animations, css state changes etc) that works perfectly on firefox, but has issues executing the jquery for IE. What I was wondering was is there a way of the jquery code automatically disabling when the site is viewed using IE?
Sure, you can use conditional comments in the head section of your page to include jQuery only for browsers that isn't IE :
<!--[if !IE]> --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <!-- <![endif]-->
This recipe can be found in it's original form on Stack Over Flow.