Skip to content
Advertisement

The idea is make click on tag to display dropdown menu items

I have a bootstrap menu that is working fine, you can see the code below, but I want to display the dropdown submenu when I clicked each item in the menu.

For example, if I click on the about us item it doesn’t display anything, but when I click the plus sign on that item it displays the submenu.

Any suggest to figure out this functionality?

Thanks.

JavaScript
JavaScript
JavaScript

Advertisement

Answer

One method is to display + / - as :after pseudo element:

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement