Form field is message. I don't want users to be able to send only spaces as a message. So,
" " and " " and " " and " " and so on will go to something like
if (x==null || x=="" || x==" " || x==" ") {
alert("At least 8 characters are required!");
return false;
}
but I need to arrange the 'if' area in a way that it will not accept only 'space' character, no matter how many 'space' characters the user puts (And at least total of , let's say, eight characters need to be put).
Thank you.
\smatches any "white space" characters.