JS Plugin: ContentHover
JS Plugin: SuperBox

JS Plugin: Tokeninput


"Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook."


Plugin: Tokeninput

Plugin: Tokeninput

Plugin: Tokeninput

Installation & Setup

Create a server-side script to handle search requests

Create a server-side script (PHP, Rails,, etc) to generate your search results. The script can fetch data from wherever you like, for example a database or a hardcoded list. Your script must accept a GET parameter named q which will contain the term to search for. E.g.

    {"id":"1035","name":"Desperate Housewives"},


    {"id":"1035","name":"Desperate Housewives"},

Include and initialize the plugin

Include jQuery and Tokeninput Javascript and stylesheet files on your page, and attach to your text input: Tokeninput stylesheet:

<script type="text/javascript" src=""></script>
<script type="text/javascript" src="yourfiles/jquery.tokeninput.js"></script>
<link rel="stylesheet" type="text/css" href="yourfiles/token-input.css" />
<script type="text/javascript">
$(document).ready(function () {


The tokeninput takes an optional second parameter on intitialization which allows you to customize the appearance and behaviour of the script, as well as add your own callbacks to intercept certain events. (see in source)



- Intuitive UI for selecting multiple items from a large list
- Easy to skin/style purely in css, no images required
- Supports any backend which can generate JSON, including PHP, Rails, Django,
- Smooth animations when results load
- Select, delete and navigate items using the mouse or keyboard
- Client-side result caching to reduce server load
- Crossdomain support via JSONP
- Callbacks when items are added or removed from the list
- Preprocess results from the server with the onResult callback
- Programatically add, remove, clear and get tokens
- Customize the output format of the results and tokens


Tags: plugin, json, jquery, php, rails, asp, develop, search, facebook, list, internet, interactive, ui, ux

Leave a Comment

No Comment

© Creative3x Ltd.