Jquery UI Tabs: How do i hide a tab and its corresponding div when i close it

后端 未结 7 1079
隐瞒了意图╮
隐瞒了意图╮ 2021-01-13 00:30

I have used Jquery UI Tabs, and given close option to the tabs. By default i am creating three tabs and its corresponding three divs. Now when i close a tab then the tab and

7条回答
  •  北荒
    北荒 (楼主)
    2021-01-13 00:57

    Not 100% sure on the specific code, but try something like this to hide-and-not-delete the tab:

    $( ".selector" ).tabs({
        remove: function(event, ui) { $(this).hide(); return false; }
    });
    

提交回复
热议问题