Skip to content

remove()

Karl edited this page Nov 4, 2017 · 3 revisions

Removes an item or items from the instance rendering then unselectable.

You can add them back at any time with the add() method.

You must pass either of the following as th first and only argument:

  • HTMLElement - the element node to remove.
  • Number - the index of the selectable element node to remove.
  • Array - an array of element node or indexes to remove. You may also pass instances of HTMLCollection or NodeList.
Clone this wiki locally