rpheath / tag-toggler
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
README | ||
| |
example.html | ||
| |
jquery.tag-toggler.js |
README
jQuery Plugin: Tag Toggler
__________________________
Description:
This plugin provides a means of selecting tags for a
web form. Click a tag once to add it to the list; click
the tag again to remove it.
Usage:
$(document).ready(function() {
// assumes you have <input id="tags" ... />
$('p.tags a').toggleTags();
// allows you to set your own <input ... />
$('p.tags a').toggleTags({ text_box: 'input#your_text_box_id' })
// supports a custom separator
$('p.tags a').toggleTags({ separator: '| ' })
})
// see 'example.html' for working example ...
