开发者

-- Adding a keydown event to a HTMLUListElement

开发者 https://www.devze.com 2023-01-11 21:29 出处:网络
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 i

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消