blog about graphic design, web design and marketing

The D. Drew Design Blog

Articles pertaining to "freeware"

25
jun 11

jQuery is-or-is-child-of function

Sometimes, in Javascript, when you interact with an element, you want to know if that element is or is the child of a specific element. A case of this might be a context menu that you have pop-up when you click on elements on the page, but you want it to be smart enough not to re-propogate when you click on the context menu itself.  see the article