I am looking to switch tabs programmatically using bootstrap 5. The Bootstrap documentation recommends using buttons for tabs instead of links for a dynamic change. Here is the code I have:
$("#mybut").click(function() {
var sel = document.querySelector('#nav-tab-manager')
bootstrap.Tab.getInstance(sel).show()
})
The issue I am facing is with the wrong selector, but I am unsure why.