Answer the question
In order to leave comments, you need to log in
How to make a Dropdown list with the ability to select an element with arrows and a cursor?
In general, I made it so that when entering text, Dropdown would fall out from below and when hovering over an element, it would be highlighted through: hover, and when the mouse was pressed, it would be transferred to input.
With arrows, I ~ imagine what to do - it's while in the input you need to listen to the arrows.
Well, something with the selection of the current element is not entirely clear what to do. I guess I need to drop :hover and put in the right class myself. Well, how can I determine the element on which the cursor is hovered or selected with arrows, so that I can attach a class to it?
Answer the question
In order to leave comments, you need to log in
Well, how can I determine the element on which the cursor is hovered or selected with arrows, so that I can attach a class to it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question