开发者

autosuggest - to activate key board arrow to view the list

http://localapartmentdeals.com/

on the above site there is 开发者_JS百科a location bar and if you type any state (US) it will display an autosuggest list but it will not allow key board strokes to select the list,

eg: no down arrow is working there.

any help please

thanks deve


It doesn't look the arrow keys are detected, you have to implement it.

You should have somewhere in the function suggest a code that handle the arrow keys like:

...
switch(keyCode) {
    case 38: 
        //up arrow, highlight previous entry
        break;
    case 40: //down arrow 
        //up arrow, highlight next entry
        break;
    ...
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜