JSFiddle - React, Tailwind, and code Playground
by shyam kumar
HTML
<input type="text" value="" class="someTextBox">
<input type="text" value="" class="input-group-field target">
JavaScript
$('.someTextBox').keyup(function() {
if($(this).val().length<20) {
var j = $(this).val();
$('.target').val(j);
}
});
$('.someTextBox').on('paste',function(){
if($(this).val().length<20) {
var j = $(this).val();
$('.target').val(j);
}
});