Snippets Collections
   const sibling = el.previousElementSibling; // parent wrapper
    
      if (sibling) {
        const classList = sibling.getAttribute('class');
        if (classList !== null && classList !== undefined && classList !== '') {
          if (sibling.classList.contains(navLinkClass)) {
           	// do something
          }
        }
      }
star

Wed Oct 11 2023 05:36:53 GMT+0000 (Coordinated Universal Time)

#javascript #ignorewrapper #click

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension