Equivalent of deprecated jQuery Toggle Event [duplicate]
Load the MIGRATE and see the code there See my post about the same thing Where has fn.toggle( handler(eventObject), handler(eventObject)…) gone? I have suggested they rename it to fn.toggler instead of removing it Here is the code – it is a self-contained jQuery plugin and can be used as is. jQuery.fn.toggle = function( fn, fn2 … Read more