- I said
<input type="tags">
should be a thing. - With full keyboard and mouse support.
- Works with HTML5
pattern
andplaceholder
attributes, too! - Native
change
andinput
("live" change) events.
It's an npm module!
npm install --save tags-input
Then, in your JavaScript:
var tagsInput = require('tags-input');
var tags = document.createElement('input');
tags.setAttribute('type', 'tags');
tagsInput(tags);
document.body.appendChild(tags);
After loading the the npm module, you'll also need to include tags-input.css
.