1. Home
  2. Javascript
  3. Select parent element

Selects the parent of the element. Returns null if no parent is found.

#javascript#select
element.parentElement
copy
Full Javascript cheatsheet