I need to run a script that will disable a another script on the page. How do I do this?
(Internet Explorer Issues is why I am having to do this.) I am using jQuery 1.8.
Please provide examples.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using jQuery you can test for IE and then load the script if it returns true.
jQuery.browser might be moved to a plugin later, if it breaks when you update your library start looking into it first.
Keep in mind that it is usually not advisable to test for a specific browser, better to test for features the browser can work with. Sometimes you don’t have a choice:
If you need a script for a specific version if IE you can also test for its version :