Words count and limit for textarea or text field
Here is a simple way to count the words in textarea or field and limit the number of the words in the text.
////////////
// Count and limit words in text field/textarea
// JQuery and JavaScript
// Count words in string
function wordcount(str) {
str = str.replace(/[s]+/g, ' ');
var myarr = str.split(' ');
var words = ...
[Read More]