Professional development and hardware consulting

Welcome to MasterDevelopment
  Home > Web Design > JQuery

Articles

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]

Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.

Page Generated for 0.00376 seconds