Some time ago, I needed to find out if a DOM element is a descendant of another. A simple and elegant way to accomplish this is:
Cool, isn’t it?
Copyright © 2018 Tudor Barbu's blog.
Powered by WordPress and Live Wire.