Search code examples
javascripthtmlaccessibility

Can I dynamically set tabindex in JavaScript?


Is there any attribute like tab-index?

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.


Solution

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