Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
/ taglist Public archive

taglist is a jQuery plugin that lets you convert a comma-delimited text field into an interactive tag list.

License

Notifications You must be signed in to change notification settings

jakebellacera/taglist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

jQuery.taglist

taglist is a jQuery plugin that lets you convert a plain ol' comma-delimited text field into a super awesome, interactive tag list.

In other words, turn this:

taglist before

Into this:

taglist after

Installation

taglist is designed to be a drop-in replacement. Do these three simple steps to get up and running:

  1. Add jquery.taglist.js onto your webpage.
  2. Add $('.myTagInputField').taglist(); to your webpage.
  3. Add some CSS for your taglist.

Options

Options can be set on your taglist by passing in an object as a parameter like so:

$('.myTagInputField').taglist({
  foo: 'bar'
});

Currently, there is only one available option:

(bool) confirmRemove (default: true)

Shows a dialog confirming if you'd like to remove the tag or not.

Callbacks

Callbacks are optional functions that are fired after an event. They are set in the options object.

errorTagAlreadyExists

Fired when a user attempts to add a tag that already exists. By default, an alert dialog pops up letting the user know that that tag already exists.


Contributing

There are two ways you can contribute:

  • Fork this repo and apply patches
  • Submit bugs/feature requests over at the Issues section. Please be specific by adding your browser type, browser version, and OS when filing a bug.

About

taglist is a jQuery plugin that lets you convert a comma-delimited text field into an interactive tag list.

Resources

License

Stars

Watchers

Forks

Packages

No packages published