Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery word count

$('input[type="submit"]').click( function() {
    var words = $('#name').val().split(' ');
    alert(words.length);
});
 
PREVIOUS NEXT
Tagged: #jquery #word #count
ADD COMMENT
Topic
Name
8+1 =