0

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.

Lazar Ljubenović
  • 18,976
  • 10
  • 56
  • 91
masterhunter
  • 551
  • 2
  • 10
  • 29

0 Answers0