jQuery Character Countdown
A jQuery plugin for producing a twitter-like countdown of characters remaining for length-limited form fields.
max_chars: The max number of characters allowed in the field. Default: The field's
maxlengthattribute if available, or 500 if no
low_chars: The number of characters remaining that will trigger the addition of the "low_class" parameter as a class name on the character count. Default:
allow_overrun: Boolean parameter indicating whether the user is allowed to exceed
max_chars, pushing the counter into the negative. Default:
low_class: The class name added to the character count once the number of characters remaining reaches
field_class:The class name added to fields using this plugin as a hook to any related styles you want to apply. Default:
counter_class: The class name of the
<label>element that contains the countdown of remaining characters. Default:
counter_message: The text that precedes and explains the numerical countdown. Default:
"Characters remaining: "
counter_location: Where you want the countdown to appear. Accepts
"before"(puts the countdown immediately before the field in the DOM tree),
"before"only... after-er), or a jQuery selector (appends the countdown to the selector's target(s)). Default: