Can someone teach me... [Solved]

Can someone teach me... [Solved]

Hi All,

I've put together a custom horizontal navigation drop down which works using clicks, very much like the one that LinkedIn.com applies.

Whilst I've managed to get the menu to come down, I am struggling to make it disappear. Basically, what I would like to do is that, once the submenu has been shown, I want to listen out for any clicks. If the target of that click was anywhere other than the submenu, to trigger the function which hides the submenu.

What is the listening logic in jquery?

Thanks