自定义select弹出面板

自定义select弹出面板:

根据按下的按键和option的内容定位到option、选中项左侧标记、自定义滚动条、上下键滚动列表,回车选定、事件委托

效果图:

自定义select弹出面板_第1张图片

//js调用:
initSelect(s); //s为select的id或select的dom对象

selectDemo.html





  
  select
  



info:
item:
footer

 

你可能感兴趣的:(html5前端,js)