I have been looking around for a function that counts the number of words in a textarea when I click the form submit button.
I am trying to display a message to the user that if they click submit and have only entered 50 or less words. This will be a confirm message basically saying “You have entered less than 50 words, are you sure you would like to continue?”…or something.
Cheers
HTML:
JS:
See demo