I have a working safecracker entryform. My client would like visitors to write at least X words before submitting the entry.
I would like to show the number of words a visitor has typed in real time (on key up). Once the amount of words has reached X the visitor should be able to submit the entry.
I've looked at the docs: http://ellislab.com/expressionengine/user-guide/modules/safecracker/index.html#form-validation. They pointed me to http://ellislab.com/codeigniter/user-guide/libraries/form_validation.html#rulereference. The closest rule I found is: min_length. This only gives me a char count.
I'd like to be able to validate by number of words.