I want to check the input length in JavaScript. I have the function to check whether the user input is empty or space only:
if(!this.content || this.content.trim() === ''){
return
}
Now I want to check the user input length. If less than 50 characters system will showing an alert.