How to Set Active Tab in jQuery Ui

后端 未结 9 1359
灰色年华
灰色年华 2020-12-08 18:51

Can you please let me know how I can set the active tab in jquery ui with a button click out of the tabs?

I have a button like:



        
9条回答
  •  醉梦人生
    2020-12-08 19:11

    If you want to set the active tab by ID instead of index, you can also use the following:

    $('#tabs').tabs({ active: $('#tabs ul').index($('#tab-101')) });
    

提交回复
热议问题