87
rated 0 times
[
88]
[
1]
/ answers: 1 / hits: 112880
/ 11 Years ago, sun, march 24, 2013, 12:00:00
How can I focus the next input once the previous input has reached its maxlength value?
a: <input type=text maxlength=5 />
b: <input type=text maxlength=5 />
c: <input type=text maxlength=5 />
If a user pastes text that is greater than the maxlength, ideally it should spill into the next input.
jsFiddle: http://jsfiddle.net/4m5fg/1/
I must stress that I do not want to use a plugin, as I'd much rather learn the logic behind this, than use something that already exists. Thanks for understanding.
More From » jquery