diff options
author | neilmonroe <neil.monroe@gmail.com> | 2009-03-20 14:50:50 -0700 |
---|---|---|
committer | neilmonroe <neil.monroe@gmail.com> | 2009-03-20 14:50:50 -0700 |
commit | 9b32d58bbdd82f8e00867a7d892a977f09448cac (patch) | |
tree | 8591b411430cafb2ef949774859f1543ddd40af4 | |
parent | f2970f0e62d56c8f985bbcdaf3f803f9739c5daa (diff) | |
download | jquery-countable-9b32d58bbdd82f8e00867a7d892a977f09448cac.zip jquery-countable-9b32d58bbdd82f8e00867a7d892a977f09448cac.tar.gz jquery-countable-9b32d58bbdd82f8e00867a7d892a977f09448cac.tar.bz2 |
Update markdown formatting (again).
-rw-r--r-- | README.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown index 1d8cf08..8e058f1 100644 --- a/README.markdown +++ b/README.markdown @@ -23,13 +23,13 @@ The countable plugin has 12 settings: ## Examples Add counter to all textarea objects on the page using defaults: -`$("textarea").countable();` +``$("textarea").countable();`` Add counters to a specific set of text fields, before each element: -`$("#myTextBox, textarea.info").countable({ appendMethod: "insertBefore" });` +``$("#myTextBox, textarea.info").countable({ appendMethod: "insertBefore" });`` Add counter to a specific textarea, but display in a given container element (with other advanced options): -`$("#comments").each(function() { +``$("#comments").each(function() { $(this).countable({ threshold: .75, appendMethod: "appendTo", @@ -40,7 +40,7 @@ Add counter to a specific textarea, but display in a given container element (wi negativeCopy: " ({n} characters over the limit)", fadeDuration: 0 }) -});` +});`` _Note: In the last example, the code is wrapped in an `each` function call to get `this` to point to the text element. Also, `maxLength` is being pulled from contextual information using the metadata jQuery plugin (<http://plugins.jquery.com/project/metadata>)._ |