twitter bootstrap 3 setting active tab in js not working

前端 未结 2 1692
野的像风
野的像风 2020-12-31 02:08

Yeah, so this has been asked about 1000 times, but I tried the answers and none seem to be working for me.

Here are my tabs:

2条回答
  •  温柔的废话
    2020-12-31 03:10

    You have : in your selector, Change it to

     $('#tab a[href="#security"]').tab('show');
    

    instead of

     $('#tab a:[href="#security"]').tab('show'); 
    

提交回复
热议问题