wgalliance Posted August 16, 2016 Report Share Posted August 16, 2016 How can I limit the number of words in a text area? I know I can limit the number of characters, but I need to limit the words to 25 or less and display an error message is the user tries to submit a statement that is more than 25. Quote Link to comment Share on other sites More sharing options...
aam82 Posted August 17, 2016 Report Share Posted August 17, 2016 I found a neat script link: http://jsfiddle.net/7DT5z/9/ You would replace #word_count with the ID of your field. Quote Link to comment Share on other sites More sharing options...
wgalliance Posted August 19, 2016 Author Report Share Posted August 19, 2016 Thanks! Outside of replacing the ID of my field what more would I do with this code? I am not a developer so I don't know how to change code. I copied the code and referred to the ID but don't know what more needs done to get it to work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.