expand/collapse table rows with JQuery

后端 未结 7 993
闹比i
闹比i 2020-11-27 11:09

I want to expand and collapse table rows when header columns is clicked. I only want to expand/collapse rows which are under the specific header (clicked).

Here is m

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 11:26

    using jQuery it's easy...

     $('YOUR CLASS SELECTOR').click(function(){
    
                $(this).toggle();
    });
    

提交回复
热议问题