Autotab's full documentation can be found in ReadMe.md on GitHub.
Angular and Knockout demos are also available.
Note: For the purposes of this demo, I am calling $.autotab({ tabOnSelect: true });
to initialize the auto tabbing order.
Use the buttons below to turn Autotab on or off. Turning Autotab off will remove both auto tabbing and filtering.
Autotab status: On$('#function').autotab(function (value, element) { var parsedValue = parseInt(value, 10); if (!value || parsedValue != value) { return ''; } var newValue = element.value + value; if (newValue > 12) { $.autotab.next(); return 2; } else if (element.value.length == 0 && value > 1) { $.autotab.next(); return value; } else if (element.value.length == 1 && parsedValue === 0 && newValue != 10) { $.autotab.next(); return 1; } return value; });
// Note: This call is not necessary as 'all' is the default format $('.all').autotab('filter', 'all');