Link to home
Start Free TrialLog in
Avatar of narmi2
narmi2

asked on

div tag item select

If I have a div tag with some text listed in it i.e.

<div>
list 1<br />
list 2<br />
list 3<br />
list 4<br />
list 5<br />
</div>

If I have an input type="text" tag above the div tag i.e.

<input type="text">
<div>
list 1<br />
list 2<br />
list 3<br />
list 4<br />
list 5<br />
</div>

how can I use the keyboard arrow keys (up and down) to select the list items in the div tag and have the text appear in the input type="text" box, depending on which item is currently selected?
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2
narmi2

ASKER