twitter/bootstrap — pull request #2007 by codeimpossible (2012-02-16 05:38:31+00:00)
Title: Added support for multiple selections in Typeahead

Added support for multiple selections in typeahead. Multiple selection is enabled by either adding a data attr `data-mode` or passing an option `mode`. I've added examples of both methods below.

Users can specify the delimiter in the data attributes, `data-delimiter=";"`, or as an option to the jquery plugin, a default delimiter of `,` is assumed.

If you're using a comma as your delimiter already then you just need to add an attribute `data-mode="multiple"` on your input like so to enable multiple selection.

**Multiple selection using data attributes**

```html

```

**Multiple selection using jquery plugin**

$('.myinput').typeahead({ mode: 'multiple' });