Selecting div in custom dropdown using Keyboard (Up, down and enter keys)

守給你的承諾、 提交于 2019-12-20 06:56:07

问题


I have simulated a dropdown look alike using div. I have also implemented search functionality for the values in dropdown div. I am trying to select the options in div dropdown using keys. When i search for a particular query and try to select the options presented, its not working.

Can anyone please suggest solution.

Code present here ---> http://jsbin.com/ujimih/2/edit

Updated code present here ---> http://jsbin.com/ujimih/10/edit

来源:https://stackoverflow.com/questions/16573869/selecting-div-in-custom-dropdown-using-keyboard-up-down-and-enter-keys

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