JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="test">
<input type="text" id="test1">
JavaScript
$(document).keyup(function (e) {
if (e.which == 13) {
var s = $(document.activeElement).id;
alert(s);
//doPostBack($(":focus").id); //doPostBack("#ctl00_MainContent_gvListPasses_btSearch");
}
});