jQuery-Form-Validator
jQuery-Form-Validator copied to clipboard
Word Count Validation
Any suggestions on using this library for word count validation? Thanks in advance!
What have you tried?
This gets you some way there.
var total = value.split(' ').filter(function(v){return v!==''}).length;
if(total < 251) {
return true;
} else {
return false;
}