jquery Programming Glossary: finalcount
jQuery: Count words in real time http://stackoverflow.com/questions/7422192/jquery-count-words-in-real-time field var number 0 var matches field .val .match b g if matches number matches.length 2 wordCounts field number var finalCount 0 .each wordCounts function k v finalCount v '#finalcount' .val finalCount Working demo http jsfiddle.net gilly3 YJVPZ.. .match b g if matches number matches.length 2 wordCounts field number var finalCount 0 .each wordCounts function k v finalCount v '#finalcount' .val finalCount Working demo http jsfiddle.net gilly3 YJVPZ Edit By the way you've got some opportunities.. 2 wordCounts field number var finalCount 0 .each wordCounts function k v finalCount v '#finalcount' .val finalCount Working demo http jsfiddle.net gilly3 YJVPZ Edit By the way you've got some opportunities to simplify your code a bit by..
|