2
我在网上输入数据到一个表格,我想改变Tab键顺序,但没有使用Greasemonkey和Scriptish的运气。我能够删除-1的tabindexes以使字段在Scriptish中可访问。但是,每当我尝试在字段上设置tabindex
时,该字段在选项卡时都会跳过。使用userscript设置tabindex?
此作品删除的tabindex:
var eth = document.getElementById('Ethnicities-111');
if (eth)
eth.removeAttribute('tabindex');
这使得不同的文本区域字段无法访问:
var tb = document.getElementById('EybComments');
if (tb)
tb.setAttribute('tabindex' '1');
谢谢!我能够通过将tabindex分配给第一个可聚焦元素,然后按照我希望的顺序将tabindexes分配给其他字段来解决问题。 – user5377002
太棒了!然后[勾选下方答案旁边的复选标记](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235)。 –