JSFiddle - React, Tailwind, and code Playground

HTML

Input:
<input type="text" id="input" />
<br/>
<hr/>Input1:
<input type="text" id="input1" />
<br/>Input2:
<input type="text" id="input2" />
<br/>Input3:
<input type="text" id="input3" />
<br/>

JavaScript

$(document).ready(function () {
    $('#input').bind("enterKey", function (e) {
        var input=$(this).val();
        var array = new Array();
        array=input.split('x');
        $('#input1').val(array[0]);
        $('#input2').val(array[1]);
        $('#input3').val(array[2]);
    });
    $('#input').keyup(function (e) {
        if (e.keyCode == 13) {
            $(this).trigger("enterKey");
        }
    });
});