How to validate inspect that is only filled with spaces in textarea?

How cai I prevent to fill only filed with spaces
<textarea minlength="25"></textarea> Is need to fill min 25 char but how I can detect that is spaces and it is not valid? Somehow with if?

If you trim() the string value of your textarea, and its length becomes zero… it’s all spaces.

1 Like

Is good but i think that cant be work with browser default validation without plugin. :frowning: