JSFiddle - React, Tailwind, and code Playground

by reporter

HTML

<html>
<body>
<div id="dd">

</div>
</body>
</html>

JavaScript

$("#dd").append("<input type='text' id ='txt'>");
$("#txt").on("keyup", function(e)
{
  alert($(this).val());
});