- This topic is empty.
June 20, 2013 at 9:14 am #45700
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 #139603
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 #139612
I think the jQuery version 1.x branch keeps supporting IE 6, just stay away from 2.xJune 20, 2013 at 10:39 am #139616
yeah I’m working with 1.4 I thinkJune 20, 2013 at 10:46 am #139617
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?June 20, 2013 at 1:21 pm #139627SenffParticipant
> As I understand it the hover function doesn’t work if there is no href attribute in the anchor link?
I’m sure the problem is that hover doesn’t work on an LI. It should work fine on an A.June 20, 2013 at 1:52 pm #139638