153
rated 0 times
[
157]
[
4]
/ answers: 1 / hits: 61122
/ 11 Years ago, sat, june 29, 2013, 12:00:00
Please see this fiddle: http://jsfiddle.net/yg49k/
The following code works fine in FireFox but doesn't work in the latest version of Chrome.
HTML:
<input type=text id=one placeholder=Type two chars />
<input type=text id=two placeholder=It should focus here />
jQuery:
$(#one).on(input, function() {
if($(#one).val().length == 2) { $(#two).focus(); }
});
Does anyone know how I can get around this?
More From » jquery