<input onkeydown="if(this.value.length>=2)this.nextSibling.focus()"><input>