开发者

Jquery selectbox keyboard navigation

I am busy with a selectbox in a template but i can't get it solved.

If you go to this page click here and look for the selectbox (it's in the forms section) and use the keyboard navigation it's skips s开发者_运维知识库ome options and i don't know why?!

Can someone help me with this one?


The problem seems to be in that sbCustomSelect plugin. It works fine as long as you initiate it once on the page (you can have it applied on multiple elements, they just need to be under one single selector).

Initiating it twice like this:

$('.row.heh select').sbCustomSelect();
$('.row.actionbox select').sbCustomSelect();

Will make the jumping occur, like can be seen here: http://jsfiddle.net/niklasvh/Qker9/7/

You can get the same functionality by combining them into one single selector and initializing the plugin only once:

$('.row.heh select, .row.actionbox select').sbCustomSelect();

And the plugin works fine:

http://jsfiddle.net/niklasvh/Qker9/8/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜