title: Custom jQuery event listener that triggers on show()
body: <p>I have a <code>div</code> that gets hidden and displayed, via <code>.hide()</code> and <code>.show()</code>. When it is displayed by <code>.show()</code> I need it to do some stuff. Is there any way I can setup a custom event listener that fires a callback when the <code>div</code> goes from hidden to visible? I can make a function and call it wherever I would call <code>$(#myDiv").show()</code> but that happens in multiple places and I would like to keep this all in one place.</p>