I have an if statement to check whether there is at least 15 characters before the textarea is considered valid in my form. I don't mind users adding whitespace but, I don't want it to count as part of the length for the value.
if(userApplying.value.length <= 14){
document.getElementById("applying_error").innerHTML =
"* please enter at least 15 characters in your message."
error = true;
}//end of if
Answer in Javascript please.