C
cantrell78
I'm dynamically building a list of divs that a user can click and sets
off an action. I was hoping to build into it a way to use the up and
down arrow keys to navigate the list and the enter key to select the
one that is focused - any idea how I could achieve this?
it's basically this:
<div style="cursorointer; cursor:hand;" onClick="return
callAction('1')">item 1</div>
<div style="cursorointer; cursor:hand;" onClick="return
callAction('2')">item 2</div>
<div style="cursorointer; cursor:hand;" onClick="return
callAction('3')">item 3</div>
off an action. I was hoping to build into it a way to use the up and
down arrow keys to navigate the list and the enter key to select the
one that is focused - any idea how I could achieve this?
it's basically this:
<div style="cursorointer; cursor:hand;" onClick="return
callAction('1')">item 1</div>
<div style="cursorointer; cursor:hand;" onClick="return
callAction('2')">item 2</div>
<div style="cursorointer; cursor:hand;" onClick="return
callAction('3')">item 3</div>