JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<input type="text" id="fill1" maxlength="3"/>
<input type="hidden" />
<input type="text" id="fill2" maxlength="3"/>
<input type="hidden" />
<input type="text" id="fill3" maxlength="3"/>
<input type="hidden" />
JavaScript
$(function() {
$('#fill1,#fill2,#fill3').keyup(function(e) {
if ($(this).val().length == $(this).attr('maxlength')) {
$(this).next(':input').next(':input').focus();
}
})
});