-
Notifications
You must be signed in to change notification settings - Fork 21
add()
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.
<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);