I have a jQuery function that is causing display errors in IE7. I simply want to disable the function only for IE7 instead of dealing with fixing the display errors.
Here is the code that calls the function:
$(document).ready(function() {
$("select, input:checkbox, input:radio, input:file").uniform();
});
So, what’s the best practice to target that callout and disable it for IE7 only?
jQuery.browser allows you to view the user agent version, though it’s not recommended by the jQuery team. Instead look at jQuery.support which is recommended for ‘feature detection’ to determine which browser you’re using.
Using $.browser, something like (not tested):
Would do the trick