Using my simple monkey-patch plugin found here: http://upshots.org/javascript/jquery-monkey-patch-duck-punch-manager, this is pretty simple…

That’s it – now you can listen for “hidden” and “shown” events normally…

Note that this only hooks into the $.fn.hide and $.fn.show methods – hiding an element via .css would not trigger the event.