-- Adding a keydown event to a HTMLUListElement
I have a unordered list of开发者_如何转开发 items. When it prints to the console, it shows up as a "HTMLUListElement". Can I register jquery's keydown event to this element of the page? Right now it's seems? to be working as if I keep that function in there, the page eventually will crash (Chrome says it's unresponsive).
According to w3school's pages for <ul>
and <li>
, the keydown event should work for lists. However, I have no personal experience using this event in lists.
精彩评论