0

我正在我的网站上进行 AJAX 实时搜索,并使用向上/向下箭头键在搜索结果中导航。这在 FF 上运行良好,因为它通过转移焦点来浏览所有结果。但在 chrome 中,焦点似乎根本没有转移。

转移焦点的代码是..

$("#counter").val(foc);
var idname = '#'+foc;
$(idname).focus();
4

0 回答 0