Jquery UI - reload selected tab?

后端 未结 5 511
粉色の甜心
粉色の甜心 2021-02-04 17:30

Is there a way to reload the selected tab I know there is the .load() function. But it wants a tab index and I don\'t seem to see a way to grab the selected tabs id.

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 18:15

    In case anyone else stumbles upon this question and - like me - is using the tabs by jQuery EasyUI, Simen's answer above won't work. Rather, to refresh a tab, use:

    var tab = $('#tt').tabs('getSelected');
    tab.panel('refresh');
    

    Where ttis the id of your tab group created via

提交回复
热议问题