jquery toggle slide from left to right and back

后端 未结 5 1632
既然无缘
既然无缘 2021-02-05 19:00

I have a \"Menu\" button on the left hand side of the page and once selected I have a div containing the menu items show. I then have another button that can be selected to hid

5条回答
  •  花落未央
    2021-02-05 19:21

    Use this...

    $('#cat_icon').click(function () {
        $('#categories').toggle("slow");
        //$('#cat_icon').hide();
    });
    $('.panel_title').click(function () {
        $('#categories').toggle("slow");
        //$('#cat_icon').show();
    });
    

    See this Example

    Greetings.

提交回复
热议问题