[jQuery] Capture a click outside of a specific object?

[jQuery] Capture a click outside of a specific object?


Hi all,
Is there a simple way to capture a click event in a window/document
and then determine whether the click was inside an element #foo, or
outside of that element?
Thanks!
-Kim