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
精彩评论