- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › dropdown menu with OnClick function
Hi
I would like to have a simple dropdown menu but I want the dropdown to appear when the mouse click on the menu item and not when it hover…
Is there someone who have an idea?
Thanks
Hubert
You will have to control it with Javascript – and listen for the click action instead of hover :)
too examples with jquery…. hope it helps…
http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx
http://www.sohtanaka.com/web-design/examples/drop-down-menu/
Hey Guys,
Might be very late on this – But, I have a solution!
I had a requirement similar to the one you have had. I wrote a simple jQuery snippet to get Drop down menu when I click on the Parent menu.
Once you click on any of the parent menu – it will show its own sub level in the drop down.
When you click on any other Parent – the previous Drop down will disappear and the new Drop down will appear.
I have that tutorial here: http://pepfry.com/tutorials/show-dropdown-menu-on-click-using-jquery/
It is a bit static type – but much useful. Any questions – please feel free to put it here!!
Thanks!
Stormstriker Sumesh