Wondering why jQuery toggle() function stopped working since the time you upgraded to the latest version of jQuery to 1.9

The reason for this can be found at http://jquery.com/upgrade-guide/1.9/#toggle-function-function-removed

.toggle(function, function, … ) removed

This is the “click an element to run the specified functions” signature of .toggle(). It should not be confused with the “change the visibility of an element” of .toggle() which is not deprecated. The former is being removed to reduce confusion and improve the potential for modularity in the library. The jQuery Migrate plugin can be used to restore the functionality.

Along with this there are many other function which has been deprecated by the jQuery 1.9

Now what, you are stuck because your project has used whole set of these deprecated function. You need to recode all stuff. I guess No.

We have jQuery Migrate 1.1.0 made for the rescue. All we need to do it include the jQuery Migrate 1.1.0 js file after jquery include and it would do the magic. If you have patience then you can see all the code which makes the old deprecated function to work as normal.