I have a nested menu list like below. At the moment, when someone clicks the main menu item, it follows that link. I was wondering if there is a way to get touchscreens to display the drop down menu without following the main menu item? The submenu has been styled ot display when the main menu item is hovered over
- Main Menu Item
- Sub Menu Item
I hope you are trying to do as mentioned in this demo: http://jsfiddle.net/akhurshid/rvy6U/
NOTE:
hoverevent is not present in touch devices, whiletapevent is present in touch devices.tapandclickevents behaves same.jQuery
HTML
CSS