How do I open a tab from with jQuery UI Tabs from an link outside of the div?

后端 未结 7 1127
清酒与你
清酒与你 2021-01-02 01:09

This may be a little difficult to explain, but I\'ll try my best. I have a product page with two tabs, full description and video. These are done using jQuery UI Tabs.

7条回答
  •  一整个雨季
    2021-01-02 01:54

    Using jquery, bind a click event to your link that opens the tab you want.

    $('#tabopenlink').click(function() {
        $('#tabs').tabs({active: tabidx});
    });
    

提交回复
热议问题