1. Home
  2. Javascript
  3. Select parent element
#javascript#select

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

element.parentElement
copy
Full Javascript cheatsheet
Sitemap Git repository