我可以在 JavaScript 中动态设置 tabindex 吗? [英] Can I dynamically set tabindex in JavaScript?

查看:24
本文介绍了我可以在 JavaScript 中动态设置 tabindex 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有类似 tab-index 的属性?

Is there any attribute like tab-index?

CONTEXT :我正在使网络表单中的部分可见或不可见,具体取决于我想在该特定部分可见时手动设置选项卡索引的某些条件.

CONTEXT : I'm making a section in a web form visible or invisible depending on some condition where I want to set the tab-index manually when that particular section is visible.

推荐答案

document.getElementById("link3").tabIndex = 6;

这篇关于我可以在 JavaScript 中动态设置 tabindex 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆