开发者

jquery: capturing show / hide event of a div

开发者 https://www.devze.com 2023-03-24 22:46 出处:网络
I have a div called MyDiv and I have some code th开发者_高级运维at hides and shows the div. I also have two functions, called functionA and functionB that I want to run respectively on the show and th

I have a div called MyDiv and I have some code th开发者_高级运维at hides and shows the div. I also have two functions, called functionA and functionB that I want to run respectively on the show and the hide event associated with MyDiv. I DO NOT want to call functionA and functionB from the code that shows and hides the div!

Is this even possible? If so, how is is done. Thanks for your suggestions.


Try jQuery.hook() : http://plugins.jquery.com/plugin-tags/event-handling

0

精彩评论

暂无评论...
验证码 换一张
取 消