A bootstrap JavaScript plugin (with semicolons) to provide a tokenizer input field.
Start typing in the field below and just hit space, enter or comma to create a new token.
<input type="text" data-provide="tokenizer">
$("input").tokenizer()
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-offset=""
.
Name | type | default | description |
---|---|---|---|
separator | string | ',' | The character to use for separating the input values. |
delimiters | array | [13,32,188] | The key code(s) that trigger a new token. |
Initializes an input with a tokenizer.