JSFiddle - React, Tailwind, and code Playground
HTML
<h1 class="title"></h1>
<input type="text" class="input">
<input type="text">
JavaScript
$('.input').keyup(function() {
var length = $(this).val().length;
if (length >= 8) {
}
});
<h1 class="title"></h1>
<input type="text" class="input">
<input type="text">
$('.input').keyup(function() {
var length = $(this).val().length;
if (length >= 8) {
}
});