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
Post a Comment