JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test1"></div>
<input type="text" value="5" name"hi" id="now">

CSS

div { background: #f00; width: 300px; height: 100px; }

JavaScript

$("#test1").click(function(){
    $("#now").val("");
});