To programmatically select a tab in Bootstrap, the jQuery method $('.nav-tabs a[href="#___"]').tab('show') is used.
- ('.active-tab')
- ('#selected-tab')
- ('.nav-tabs li a')
- ('[data-toggle="tab"]')
The correct syntax is ('.nav-tabs a[href="#selected-tab"]').tab('show'). It targets the tab link with the specified href attribute, activating the tab in Bootstrap.
Loading...
Related Quiz
- How can you use Bootstrap to display data fetched via an AJAX call?
- Q1: In a Bootstrap form, how do you ensure that data submission is handled through AJAX without a page reload?
- To adjust the width of the container for large devices, modify the ___ variable in Bootstrap.
- To customize Bootstrap's primary color, the SASS variable '___' should be modified.
- In successful Bootstrap implementations, what is a common strategy for handling cross-browser compatibility?