/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery.fn.fadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle'}, speed, easing, callback); }; jQuery('.fb_entry').each(function() { var parent = jQuery(this); jQuery(this).find(".fb_info_tab").click(function () { parent.find(".fb_info").fadeToggle('fast','linear',function() { // callback }); parent.find("table").toggleClass('toggle'); }); });