Syed mohamed aladeen
Syed mohamed aladeen

Reputation: 6755

do not hide HTML dropdown(<select>) on selecting disabled option

I have a html dropdown(selectbox) with some disabled values in my html&angular code. when I click on a disabled value, it hides the dropdown. is it possible to show the dropdown even when the disabled option is clicked. I have searched it around but I couldn't find any solution. is this possible? selectbox

I have multiple disabled options.

Upvotes: 1

Views: 138

Answers (2)

SHi
SHi

Reputation: 23

If you use :hover in your CSS remove it, it should fix it.

Upvotes: 1

Andre van Rensburg
Andre van Rensburg

Reputation: 161

I would add another class name to the list item and test otherwise you will need to use conditional logic to remove the link from the list item when the class disabled is loaded.

Upvotes: 1

Related Questions