CSS/JS Dropdown menu, IE6 compatible
# June 20, 2013 at 9:14 am
I created a pen on CodePen with my code in it: [CodePen Link](http://codepen.io/csmhowitzer/details/hEJDg#pen-details-tab “CodePen Link”)
jquery is a bit new to me, and the lifecycle of it. I’m trying to make it so when a menu topic is hovered over the dropdown is displayed and the user can select a link from there (simple right?), but it seems that you have to stay hovering over the parent menu item and then once you mouse off it the list disappears.
Thanks, and hopefully this will be a useful post for others aswell.# June 20, 2013 at 9:41 am
Frankly, if IE6 is a requirement then perhaps JQuery is not for you…they are basically not supporting it any more.
All you really need is a way to apply a certain class on a click (although frankly a hover is usually good enough) and a custom JS script should work for that.# June 20, 2013 at 10:22 am
Not that I’m ever…ever…going to worry about IE6 but the hover issue…
> The :hover element doesn’t work properly (if at all) in IE6.
As I understand it the hover function doesn’t work if there is no href attribute in the anchor link?
Does it have to be a valid href or would `href=””` not solve the problem?
Seriously, I have no idea….does anyone have any experience of this?
You must be logged in to reply to this topic.