Open a specific tab with cbpFWTabs

前端 未结 4 948
忘掉有多难
忘掉有多难 2021-01-27 04:34

I am using cbpFWTabs (http://tympanus.net/Development/TabStylesInspiration/) but want to open a specific tab upon page load. I have tried to emulate the show method like this in

4条回答
  •  忘了有多久
    2021-01-27 05:15

    It turned out to be easier than I thought -- simply invoke the click event on the anchor:

    $('#settings-section')[0].click();
    

    And adding an id to the anchor:

     
  • Settings
提交回复
热议问题