jQuery parent().find() problem

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

HTML

Toggle Comment 1
2条回答
  •  星月不相逢
    2021-02-20 07:52

    its even simpler, I think, when you clean up your html as well a little bit: (avoid br)

    http://jsfiddle.net/ESM4m/27/

    toggle
    toggle
    $(function(){ $('.toggle').click(function() { $(this).next().slideToggle(); return false; }); });

提交回复
热议问题