JSFiddle - React, Tailwind, and code Playground
by Berguiga
HTML
<input type="text" id="idInput" />
<br/>
<input type="text" id="idInput2" />
JavaScript
$('#idInput').click(function()
{
var dest = $("#idInput2");
dest.val(dest.val().split(" ").join(""));
if( $("#idInput2").val().length == 0 ) {
alert("aaa");
}
})