All dropdown events are fired at the .dropdown-menuβs parent element and have a relatedTarget property, whose value is the toggling anchor element. Add .disabled to items in the dropdown to style them as disabled. Add .active to items in the dropdown to style them as active. Toggle contextual overlays for displaying lists of links and […]
Read More… from How To Create a Dropdown Menu With CSS and JavaScript