Skip to content
Advertisement

Tag: drop-down-menu

Create sub-headings in a react dropdown component

I have created a drop down menu using the react component . The code is below: The person object is as follows: I was wondering whether it is possible to have sub-headings within this drop down menu in order to group the people (e.g. Men, Women). I have found it possible when using plain javascript but I can’t seem to

javascript dropdown menu onclick

I’ve been working at this for a while now, but don’t understand what’s wrong with my code. I’m sure it’s something simple – it always is! Basically, I have a drop down menu, with some options. I want it to go to a web page when the third option, plumber, is selected. When any of the others are clicked, nothing

Advertisement