fadeToggle()无法正常工作 [英] fadeToggle() not working

查看:329
本文介绍了fadeToggle()无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用fadeToggle()

head部分中的jquery库是: jquery-1.4.2.min.js

the jquery library inside the head section is: jquery-1.4.2.min.js

这是简单的功能:

 $(function(){
         $("#div1").click(function () {
                $("#div2").fadeToggle();
            });

            $("#div3").click(function () {
                $("#div4").fadeToggle();
            });
        });

  </script>

这是萤火虫的错误

$("#div2").fadeToggle is not a function

我试图将jquery库更改为-jquery.js,但随后所有jquery插件均停止工作并且错误相同

I tried to change the jquery library to- jquery.js but then all the jquery plugin stop working and the error is the same

任何想法是什么原因造成的

Any Idea what causing this

谢谢

Baaroz

推荐答案

fadeToggle函数仅在jQuery 1.4.4及更高版本中可用.

fadeToggle function is only available in jQuery 1.4.4 and above.

:)

这篇关于fadeToggle()无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆