Can I dynamically set tabindex in JavaScript?

RVK picture RVK · Sep 22, 2010 · Viewed 68.8k times · Source

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.

Answer

hunter picture hunter · Sep 22, 2010
document.getElementById("link3").tabIndex = 6;