A
A
Abai Kerimov2016-01-22 08:33:30
css
Abai Kerimov, 2016-01-22 08:33:30

How to make href a link to switch tab?

In general, I created switching tabs on the main page of bootstrap, here is an example.

In one of the tabs there is a link to the next tab, the question is how to implement the link so that when clicked, the corresponding tab switches.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Belyaev, 2016-01-22
@PavelBelyaev

onclick.... make the desired block visible and tab active and return false in the function

V
Vladimir, 2016-01-22
@vintello

for example, like this, as they write in the dock

$('#myTabs a').click(function (e) {
  e.preventDefault()
  $(this).tab('show')
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question