'Split input into separate boxes

I am looking to separate an input into individual character/digit boxes, like this photo

Ideally, entering a digit would take you to the next input box and each one would be highlighted separately with the active border. I can use a combination of styling and Javascript to accomplish this.

Any insight would be really helpful! Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source