Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved README to README.md and modified index.html
- Loading branch information
Showing
3 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
jQuery Taggable Plugin | ||
========================= | ||
|
||
The taggable plugin helps you create an area with a checkboxes for the tags, and will bind them to a specified text input field. | ||
|
||
Usage | ||
------------------------- | ||
Create your tag field with an `input[type="text"]` or a `text_area` as well as a `div` that will contain the checkbox tags. | ||
|
||
<input type="text" id="skills_list_field" name="skills_list" value="c#" /> | ||
<div id="skills_list_tags"></div> | ||
|
||
Use the jQuery selector to select the tag container, and instantiate Taggable passing the field selector (preferrably ID of the input or text area), as well as an array of tags. | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
var skill_tags = ['c#', 'php', 'java', 'javascript', 'ruby']; | ||
$('#skills_list_tags').Taggable({ field_selector: '#skills_list_field', available_tags: skill_tags }); | ||
}); | ||
</script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters