Selectable DOM elements.
$ component install component/selectable
<ulid="pets"><lidata-name="tobi">Tobi</li><lidata-name="loki">Loki</li><lidata-name="jane">Jane</li><lidata-name="abby">Abby</li></ul><script>varselectable=require('selectable');varselection=selectable('#pets > li');selection.on('change',function(e){for(vari=0;i<e.selected.length;i++){console.log(e.selected[i].getAttribute('data-name'));}});</script>Make elements with the given selector selectable, with optional context el.
Add the given els to the selection.
Remove the given els from the selection.
MIT
