I would like to disable a JQuery function ONLY in IE7.
What would be the best way of doing it?.
select_menu: function() {
$('select').selectmenu({
style: 'dropdown',
appendTo: 'footer#footer form span'
});
$('form.filters * select').each(function() {
$(this).selectmenu({
style: 'dropdown',
appendTo: $(this).closest('span'),
"open": function(){
var menu = jQuery('ul#'+$(this).attr('id')+'-menu');
menu.hide().slideDown('slow');
},
"close": function(){
var menu = jQuery('ul#'+$(this).attr('id')+'-menu');
menu.slideUp('slow');
}
});
});
},
Place this directly after the plugin’s script to disable the plugin in IE7
Though you could probably instead fix the plugin to work in IE7, that would be the best way to fix the problem.