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

forms - Secure PHP File Upload Script -

c# - Regex Problems, extracting data to groups -

silverlight - SL4 - TextTrimming in DataGridRowGroupHeader -