Custom jQuery event listener that triggers on show() -


i have div gets hidden , displayed, via .hide() , .show(). when displayed .show() need stuff. there way can setup custom event listener fires callback when div goes hidden visible? can make function , call wherever call $(#mydiv").show() happens in multiple places , keep in 1 place.

you can pass function callback show method execute after show has completed:

$("#mydiv").show(function(){    mycustomfunction(); }); 

Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -