如何在html页面中包含所有组件 - 所以每次按TAB键时,我都会获得页面中的下一个元素,包括标签!!
例如:
<div class="input">
<h1 tabindex="0">I need that all the components will be in the list of tab-order, Including labels!</h1>
<label class="narrow-control label-top-right" for="txtName">name:</label>
<input type="text" name="txtName" class="inputText"/>
<label class="narrow-control label-top-right" for="txtAge">age:</label>
<input type="text" name="txtAge" class="inputText"/>
</div>