JSFiddle - React, Tailwind, and code Playground

by softvar

HTML

<input type="text" id="t_id_textbox" placeholder="enter some text">
    <div id="formhtml"></div>

JavaScript

$(function() {
    $("#t_id_textbox").keypress(function(){
    $("#formhtml").html($('#t_id_textbox').val());
    });
});