Examples

Basic

Just add data-role="materialtags" to your input field to automatically change it to a tags input field.

statement returns
$("input").val()
$("input").materialtags('items')
Typeahead

Typeahead is not included in Bootstrap 3, so you'll have to include your own typeahead library. I'd recommed typeahead.js. An example of using this is shown below.

statement returns
$("input").val()
$("input").materialtags('items')
Objects as tags

Instead of just adding strings as tags, bind objects to your tags. This makes it possible to set id values in your input field's value, instead of just the tag's text.

statement returns
$("input").val()
$("input").materialtags('items')