1. Home
  2. Javascript
  3. Remove

This function removes selected element from DOM.

#javascript#dom
element.remove();
copy
Full Javascript cheatsheet