jquery event handler: div becomes visible/hidden -


i have div , i'd have event handler listen when becomes visible , hidden. how do that?

thanks.

you can use callback parameter in show() , hide() methods this:

$('#mydiv').show(0, ondivshow); $('#mydiv').hide(0, ondivhide);  function ondivshow() { //your code here } function ondivhide() { //your code here } 

see working example here: http://jsfiddle.net/n7unu/


Comments

Popular posts from this blog

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

Disabling Android home button for industry application -

c# - HwndSource win32 integration with Ribbons and KeyTips -