Originally published on 2018-05-15

When a collection of fields looks like this One chars

if (event.change.length > 0) nextField();
function nextField()
{
        var prefix = "Text"; // length of prefix in field name
        var nextInd = event.target.name.substr(prefix.length, (event.target.name.length - prefix.length));
        var nextName = prefix + (++nextInd);
        getField(nextName).setFocus();
}