JSFiddle - React, Tailwind, and code Playground
HTML
Enter the Number:<br/>
<input type="text" name="text1" id="text1" ><br/>
The Matching value is:<br/>
<input type="text" id="text2" name="text2">
JavaScript
$(document).ready(function(){
var text1=$("#text1").val();
if(text1===""
});