How to implement the limit when you type in a string?

When you type in a string at a certain number of characters should appear in the checkbox

How you can implement it using jquery?

There is just a counter

$(document).ready(function(){ 
$('textarea').limit('100','#charsLeft'); 
});
July 9th 19 at 10:33
4 answers
July 9th 19 at 10:35
Solution
$('textarea').on('change',function(){
 if (this.length>=10) $('checkbox').show();
});
July 9th 19 at 10:37
Solution
Or https://jsfiddle.net/83oykfyz/ - Baylee43 commented on July 9th 19 at 10:40
: hmm, why is the input not working, and the icon does not appear - Emery_Jakubowski commented on July 9th 19 at 10:43
: all is well! - Emery_Jakubowski commented on July 9th 19 at 10:46
July 9th 19 at 10:39
$('textarea').keyup(function () {
 if ($(this).val().length > 10) {
$('#checkbox').show();
}
}
July 9th 19 at 10:41
$(function () {
 $('.textarea').on('keyup', function () {
 var l = this.value.length;

 if (l > 100) {
$('.checkbox').show();
 } else {
$('.checkbox').hide();
}
});
});

Find more questions by tags jQueryJavaScript