JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" id="closeLink" tabindex="2"><img class="close" style="border-style:none" alt="close img here" id="closeButton" src="Images/trans.png"/></a>

<input type="text" data-bind="value: currentValue" class="channel" tabindex="1"/>

CSS

*:focus { border: 1px solid red; }

JavaScript

$(document).ready(function() {

    $('.channel').keypress(function(e) {
        var code = (e.keyCode ? e.keyCode : e.which);
        if (code == 13) { //Enter keycode
            $(".channel").blur();
            $("#closeLink").focus();
        }
    });
});