Search after 2 hours on internet couldn't find something I want.
Here is my question: How can I create a button which acts like "Tab key" and "Shift + tab Key" it focus next input text or previous and first time press will focus first input.
something like this:
<div class="inputs">
<input type="text" tabindex="1"/>
<input type="text" tabindex="2" />
<input type="text" tabindex="3" />
<input type="text" tabindex="4" />
<button>Tab(Go next input to Focus)</button>
<button>Shift + Tab (fo Previous input to focus)</button>
</div>
sorry for bad presenting my question and english