jQuery.simpleTagger

Transforms a <select> element into a cross-browser input field to manage tags. View Github repository

// This dynamic showcase is built with jQuery.pluginShowcase

Methods

getTags

Returns an array of the entered tag values.

$(".tagger").simpleTagger("getTags");

setTags

Sets tags to be shown in the tagger.

$(".tagger").simpleTagger("setTags", ["HTML", "CSS"]);

addTag

Add a new tag to tagger.

$(".tagger").simpleTagger("addTag", "HTML");

removeTag

Remove a specific tag from the tagger.

$(".tagger").simpleTagger("removeTag", "HTML");

removeTags

Removes all the tags from the tagger.

$(".tagger").simpleTagger("removeTags");