Blur and element children
So I have a div that acts like a select drop down. This div expands and collapses when the user clicks on a certain element (using the .click event). Inside this div is a list of checkboxes. I want to be able to have this div collapse when I click OUTSIDE of it. However, if I click anything INSIDE the div (checkboxes included), the div collapses.
I need to find a way to detect if an element is a child of this div on the blur event. Does that make sense? Anybody have any ideas?