Auto TabIndex

Auto TabIndex

Adds auto sets or retrieves the index that defines the tab order for the object to jQuery.

Download v0.1

Usage

Load after jQuery:

<script src="http://code.jquery.com/jquery-x.x.x.min.js"></script>
<script src="jquery.autotabindex.min.js"></script>

Config

autotabindex() Can optionally override some or all of the following defaults:

foo.autotabindex({
        list:      '', // list of elements
        classname: ''  //CSS Class
});

Examples

#F1

#F2

#F3

$('body').autotabindex(
    {
       list: '#f1_1, #f1_4, #f1_7, #f1_2, #f1_5, #f1_8, #f1_3, #f1_6, #f1_9, '+
             '#f2 textarea, #f2 input, '+
             '#name, #family, #zipcode, #country, #state, #city, #sc1, #sc2, #description',

       classname: 'activeInput'
    });