tranverse classes in a list

PHOTO EMBED

Sun Oct 30 2022 23:09:44 GMT+0000 (Coordinated Universal Time)

Saved by @davidmchale #react #show #hide #substring #paragraph #content

const selected = querySelector('selected');
  const prev =
    selected.previousElementSibling || this.modalImages.lastElementChild;
  selected.classList.remove('selected');
  prev.classList.add('selected');
content_copyCOPY