JSFiddle - React, Tailwind, and code Playground

by rajaadil

HTML

<input id="txt" type="text" value="123" />

JavaScript

$(document).ready(function () {
        $("#txt").focus(function () {
            //alert("Handler for .click() called.");
             $(this).val("");
        });
 });