jQuery parent().find() problem

前端 未结 2 1071
傲寒
傲寒 2021-02-20 07:07

HTML

Toggle Comment 1
2条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 07:33

    $(function(){
        $('.toggle').click(function() {
            $(this).nextAll('.comment:first').slideToggle();
            return false;
        });
    });
    

    jsFiddle.

提交回复
热议问题