JSFiddle - React, Tailwind, and code Playground

by Mehmet Alp

HTML

<input id="tak" type="text" />

JavaScript

$(document).keypress(function(e) {
    if(e.which == 13) {
        alert("2");
    }
});