0.01
No commit activity in last 3 years
No release in over 3 years
AutoTab is a is a jQuery plugin that provides auto tabbing and filtering on text fields in a form.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0
>= 0.14

Runtime

>= 3.0
>= 3.0
 Project Readme

AutoTab for rails asset pipeline

Gem Version Code Climate License

Autotab is a jQuery plugin that provides auto tabbing and filtering on text fields in a form. Once the maximum number of characters has been reached within a text field, the focus is automatically set to a defined element. Likewise, clearing out the text field's content by pressing backspace eventually places the focus on a previous element.

The autotab-rails gem integrates the AutoTab with the Rails asset pipeline.

Usage

Install autotab-rails gem

Include autotab-rails in Gemefile

gem 'autotab-rails'

Then run bundle install

Include autotab javascript assets

Add to your app/assets/javascripts/application.js if use with jQuery

//= require autotab-jquery

Enable autotab javascript by specific css class

Add to one coffee script file, like custom.js.coffee

$(document).ready -> $("#first").autotab target: "second" format: "numeric"

$("#second").autotab
  target: "third"
  format: "numeric"
  previous: "first"

$("#third").autotab
  previous: "second"
  format: "numeric"

return

And this file must be included in application.js

//= require autotab-jquery
//= require custom

Limitations

jquery-autotab does not supports iphone.READ MORE

Gem maintenance

Maintain autotab-rails gem with Rake commands.

Update origin autotab source files.

rake update-autotab

Publish gem.

rake release

Contributing to jquery-autotab

Fork, fix, then send me a pull request.

License

MIT license.