Skip to content
Karl edited this page Nov 4, 2017 · 3 revisions

Adds a node to the instance making it selectable.

A valid HTMLElement node or instance of HTMLCollection / NodeList must be passed as the first and only argument.

Examples

<ul id="list1">
    <li class="ui-selectable"></li>
    <li class="ui-selectable"></li>
    ...
</ul>
<ul id="list2">
    <li></li>
    <li></li>
    ...
</ul>
var items = document.getElementById("list2").children;

selectable.add(items);
Clone this wiki locally