JSFiddle - React, Tailwind, and code Playground
by vipulg
HTML
jquery get value of input text field length
<input type="text" id="textbox"/>
<p>Error </p>
<button type="button" id="button">Click Me!</button>
JavaScript
$('#button').click(function() {
var value = $('#textbox').val().length;
if(value >=1)
{
alert(value);
$("p").hide();
}
else{
}
});