Jquery Toggle two function not work in 1.10.1

前端 未结 7 2034
执念已碎
执念已碎 2020-12-17 03:04

Jquery Toggle two function not work in jquery 1.10.1 but work\'s on Jquery 1.8.3

HTML

For example, consider the HTML:

7条回答
  •  忘掉有多难
    2020-12-17 03:41

    It was removed in jQuery 1.9:

    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.

    Complete upgrade guide: http://jquery.com/upgrade-guide/1.9/

提交回复
热议问题