$('#FashionStatement').val('');
var limitNum = 1000;
var pattern = 'You can also enter 'limitNum' word';
$('#statementRowChk').html(pattern);
$('#FashionStatement'). keyup(
function() {
var remain = $(this).val().length;
if (remain > 1000) {
pattern = $('The number of words exceeds the limit, please Delete some content appropriately');
}
else {
var result = limitNum - remain;
pattern = 'You can also enter the word 'result';
}
$( '#statementRowChk').html(pattern);
}
);
This program is easy to understand at a glance, so I won’t explain it.