简体   繁体   English

不能在SelectBoxIt中选项卡

[英]can't tab in SelectBoxIt

Hello my name is Shane, 您好,我叫Shane,

I am coding a custom website. 我正在编写自定义网站。 I have built a contact form and am using SelectBoxIt (http://gregfranko.com/jquery.selectBoxIt.js/) for my drop-down feature. 我已经建立了联系表,并且正在使用SelectBoxIt(http://gregfranko.com/jquery.selectBoxIt.js/)作为下拉菜单功能。 I have several Input Fields, two buttons and one Select Box (drop-down). 我有几个输入字段,两个按钮和一个选择框(下拉列表)。 I have the form working perfectly, my issue is with the TabIndex. 我的表格运行正常,我的问题是TabIndex。 I have the correct tabindexs coded in each Input, but when I tab to the Select Box it gets ignored. 我在每个输入中都编码有正确的tabindexs,但是当我使用Tab键选择框时,它将被忽略。

Here is the page: http://www.lightupco.com/contact.htm NOTE: you have to click the Envelope/Pen icon to reveal the form. 这是页面: http : //www.lightupco.com/contact.htm注意:您必须单击信封/笔图标以显示该表单。

The only clue I have from researching a forum with similar issue, is it has something to do with the underlying UL throws the tab index off. 我从研究具有类似问题的论坛中获得的唯一线索是,它与潜在的UL产生了Tab索引无关。

I'm not sure what code from my page to include here, to get help figuring this out? 我不确定要从页面中将哪些代码包含在此处,以帮助您弄清楚这一点?

Hey Shane I wrote SelectBoxIt. 嗨,谢恩,我写了SelectBoxIt。 The reason your select box tabindex is getting ignored is because SelectBoxIt hides the original select box and replaces it with new HTML that is easier to style (a div element). 选择框tabindex被忽略的原因是SelectBoxIt隐藏了原始选择框,并用更易于样式设置的新HTML(div元素)替换了它。 Hence, the tabindex attribute is not being set on the visible drop down (the div element), only the hidden select box. 因此,不会在可见的下拉列表(div元素)上设置tabindex属性,而仅在隐藏的选择框上设置。

If you don't mind creating an issue on Github , I would be happy to add a feature to SelectBoxIt that copies any tabindex attribute on the original select box to the new visible drop down. 如果您不介意在Github上创建问题,我很乐意向SelectBoxIt添加一个功能,该功能会将原始选择框上的所有tabindex属性复制到新的可见下拉列表中。 That should solve your issues. 那应该解决您的问题。

The selectbox has index 0. If you click in the Name: input, your index is 1, so, your indexes as wrong. 选择框的索引为0。如果单击“名称:”输入,则索引为1,因此,索引为错误。

Why using tabindex, after all? 毕竟为什么要使用tabindex? -.- -.-

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM