1. Home
  2. Javascript
  3. Select previous sibling

Selects the previous sibling of the element.

#javascript#select
element.previousSibling
copy
Full Javascript cheatsheet