KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel