JSFiddle - React, Tailwind, and code Playground

by Ronjon

HTML

<div id="divUnique">
    <textarea id="txt" name="txt" cols="100"></textarea>
    <input type="file" name="myfile" id="myfile" size="20"/>
    <input type="checkbox" id="chk1" name="chk1"/>
    <input type="checkbox" id="chk2" name="chk2"/>
</div>

JavaScript

$(document).ready(function(){
    //click
    $("#txt").click(function(){
        alert("textarea clicked");
    });
    //keypress
    $("#txt").keypress(function(){
        alert("key pressed");
    });
    //change
    $("#txt").change(function(){
        alert("changed");
    });
})