whatman75 (owner)

Revisions

gist: 20156 Download_button fork
public
Public Clone URL: git://gist.github.com/20156.git
Embed All Files: show embed
JavaScript #
1
2
3
4
5
6
7
8
9
  var phone_inputs = $('.phone_input').length ? $('.phone_input') : null;
  if (phone_inputs) {
    phone_inputs.bind('keyup', function() {
      self = $(this);
      if (self.val().length == self.attr('maxlength')) {
        self.next().focus();
      };
    })
  };