Author: | djhvscf |
---|---|
Views Total: | 799 views |
Official Page: | Go to website |
Last Update: | January 2, 2015 |
License: | MIT |
Preview:

Description:
A lightweight standalone JavaScript library that provides auto tab functionality on text fields (inputs and textareas) in a form. The cursor will automatically jump to next text field when the current one reaches a specified max length.
How to use it:
Load the autoTab.js JS library at the end of the document.
<script src="src/autoTab.js"></script>
Specify the auto tab step and max length for each text fields using data-* attributes.
<input type="text" data-tab="0" data-length="5"> <textarea data-tab="1" data-length="140"></textarea>
Enable the auto tab functionality.
var autoTab; (function() { autoTab = new autoTab(); })();
Available options.
var autoTab; (function() { autoTab = new autoTab({ autoFocus: false, addStyle: false, onComplete: function() {} }); })();
There is a lastest version of this library