With jQuery outside events you can bind to an event that will be triggered only when a specific 'originating' event occurs outside the element in question.. Current stable version of jquery-outside-events is 1.1