🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

This jQuery Word and character counter plug-in allows you to count characters or words, up or down. You can set a minimum or maximum goal for the counter to reach. Create a custom message for your counter’s messageForce character/word limit on user to prevent typingWorks against copy/paster’s!

Forms Plugins

Documentation

JQuery Character and Word counter plugin

This plug-in allows you to count characters or words, up or down. You can set a minimum or maximum goal for the counter to reach.

  • Create a custom message for your counter's message
  • Force character/word limit on user to prevent typing
  • Works against copy/paster's!

It will insert a div with an id of the name of the input area you are counting, appended with the string "_counter". For example, if the input you want to count is called "awesome", the id of the div that keeps track of the count will be "awesome_counter".

Simple? You bet your ass it is.

Demos and code samples

npm install jquery-word-and-character-counter-plugin 

Contributing

OMG you're awesome.

Use the gh-pages branch for development. Run npm install to install the lint/build packages.

The source file is `./jquery.word-and-character-counter.js

Build with grunt if you have it installed globally, otherwise npm run build.

Code Style

Be nice and follow the jsrc rules. These are checked by the Grunt build.

If your text editor doesn't use it automatically, you can run it using jscs jquery.word-and-character-counter.js.

Minify it!

Bytes are precious. Use uglifyjs jquery.word-and-character-counter.js -o jquery.word-and-character-counter.min.js to minify the output file. This is run automatically by the Grunt build.


You May Also Like