diff options
author | neilmonroe <neil.monroe@gmail.com> | 2009-08-28 14:57:31 -0700 |
---|---|---|
committer | neilmonroe <neil.monroe@gmail.com> | 2009-08-28 14:57:31 -0700 |
commit | 97dec2789ab244efceea619399088c699d20f545 (patch) | |
tree | 8257c8997b2191abe1c4f4e5b37d94497e922329 | |
parent | 4eb96a345578a474a175cc93e6aca04466927263 (diff) | |
download | jquery-countable-97dec2789ab244efceea619399088c699d20f545.zip jquery-countable-97dec2789ab244efceea619399088c699d20f545.tar.gz jquery-countable-97dec2789ab244efceea619399088c699d20f545.tar.bz2 |
Update docs to include 'defaultText' option.
-rw-r--r-- | README.markdown | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index 95ebe88..6be9581 100644 --- a/README.markdown +++ b/README.markdown @@ -5,7 +5,7 @@ A jQuery plugin that adds a character counter to inputs and textareas. ## Settings -The countable plugin has 12 settings: +The countable plugin has 13 settings: * `threshold` - The percentage at which the counter begins to fade in. Default is **0.5**. * `appendMethod` - One of **insertAfter**, **insertBefore**, **prependTo**, or **appendTo** to insert the counter after or before the input/textarea or prepend or append to the **target** element. Default is **'insertAfter'**. @@ -19,6 +19,7 @@ The countable plugin has 12 settings: * `positiveCopy` - The copy to use when the character count is below the max. Use `{n}` to denote where the number should go. Default is **'You have {n} characters left.'**. * `negativeCopy` - The copy to use when the character count is over the max. Use `{n}` to denote where the number should go. Default is **'You are {n} characters over.'**. * `fadeDuration` - The duration of the fade animations. Default is **'normal'**. +* `defaultText` - Text to ignore in the character count. This would be used if you have default text that disappears when focus is brought to the text box. Default is **''**. ## Examples @@ -41,7 +42,8 @@ Add counter to a specific textarea, but display in a given container element (wi maxLength: $(this).metadata().maxLength, positiveCopy: " ({n} characters left)", negativeCopy: " ({n} characters over the limit)", - fadeDuration: 0 + fadeDuration: 0, + defaultText: "Enter message" }) }); |