Toggle stopped working after jquery update

后端 未结 2 483
独厮守ぢ
独厮守ぢ 2021-01-16 12:11

I was using jquery 1.3 on my website. Today I updated it to newest 1.9 and my toggle/animate script stopped to work.

The code looks like that:



        
2条回答
  •  粉色の甜心
    2021-01-16 13:00

    $('#toggler').click( function() {
        $('#tcontent').toggle(
            function()
            {
                $(this).animate({height: "70"}, 800);
            },
            function()
            {
                $(this).animate({height: "6"}, 800);
            }
        );
    });
    

提交回复
热议问题