I have all my jQuery code for different elements of my website in one single file called scripts.js however there is one block of code I wish to disable if the user is using IE8. This is what I want to disable:
$(document).ready(function(){
$('.parallax-block-1').parallax("50%", 0.1);
});
I've looked up everywhere and the only thing I found is to place an IF conditional comment like - <!--[if !(IE 8)]><!-->
before <script> </script>
in the html code but since I have everything in one single js file the IF statement would disable all the other scripts in it.
Hope my question makes sense. Thank you all!