How can I make the up and down arrow keys navigate a table's rows, and programmatically apply the sudo :hover to those rows?

大兔子大兔子 提交于 2019-12-05 21:57:10

I threw together a fiddle for you to play around with http://jsfiddle.net/7BcZA/2/

Summary:

When you "hover" a row, add a class to it. Mine is called selected. This identifies that it's selected, as well as adds CSS styling. Remove the class selected from the previous tr that was selected.

Get the next or previous tag based on which was button was pressed.

As a bonus, I added the "press enter" functionality that you were looking for =).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!