some time we need to minlength validation in input field then we set minlength value. but if i am useing summernote editor then how to validation minlength.
how to use summernote minimum length validation
2716
11-Sep-2019
Anonymous User
11-Sep-2019Please read this example to solve summernote minLength problem.
$("#frmcontent").submit(function () {var minLength =100;
var editorContent = $('#summernote').val();
var editorDecodeVal = deEncode(editorContent).trim();
var contentMinLength = editorDecodeVal.length;
if (contentMinLength < minLength) {
alert("Enter content minimum of " + minLength + " characters!!!");
return false;
}
});
I hope it will help to you.