How to count words using JQuery
You would split the string and then count the length of the resulting array.
$('input[]').click( function() {
var words = $('#name').val().split(' ');
alert(words.length);
});
You would split the string and then count the length of the resulting array.
$('input[]').click( function() {
var words = $('#name').val().split(' ');
alert(words.length);
});