I have an object variable in my controller (var myObject), divided into 3 input text in the IHM.
I want to change automatically the focus to the next input when the focused one reached the maxLength.
var myObject = {
part1:"",
part2:"",
part3:""
}
<form>
<input type="text" id="part1" ng-model="myObject.part1" maxlength="7"/>
<input type="text" id="part2" ng-model="myObject.part2" maxlength="12"/>
<input type="text" id="part2" ng-model="myObject.part2" maxlength="12"/>
</form>