Currently, I'm designing a menu for a WordPress theme and facing a styling issue. I aim to differentiate between menu items with submenus and those without by applying different styles on hover. Here's the jQuery code snippet I am using:
$(document).ready(function(){
$('.menu li').has('ul').addClass('submenu');
});
I've applied corresponding CSS styles where regular menu items display rounded borders on hover while submenu items only get upper rounded borders. This setup works flawlessly on Firefox, Chrome, and Safari but unfortunately not on IE9. Does anyone have suggestions on how to make this jQuery function compatible with IE9? Feel free to check out the progress of the WordPress theme here.