skip to Main Content

Jquery – Show tab-pane from a outside link click

I need a <a href="#" class="link-one">Link</a> outside nav-tabs to activate a tab-panel/tab-content using Bootstrap 5. Basically, how can I simplify this? // show relevant Bootstrap tab from a outside link click $('.link-one').on('click', function(){ $('#tab-one-pane').addClass('show active'); $('#tab-two-pane').removeClass('show active'); $('#tab-two').removeClass('active'); $('#tab-one').addClass('active'); });…

VIEW QUESTION
Back To Top
Search