JSFiddle - React, Tailwind, and code Playground
by Mansfield
HTML
<input type="text" id="input1" />
JavaScript
//tell me whether the value of the textbox is an empty string
alert(document.getElementById("input1").value === "");
by Mansfield
<input type="text" id="input1" />
//tell me whether the value of the textbox is an empty string
alert(document.getElementById("input1").value === "");