R
R
RushV2020-10-29 15:53:38
JavaScript
RushV, 2020-10-29 15:53:38

How to show tabs on hover in Boostrap 4?

How to make tabs work on hover and the link is active?

<a class="nav-link bg-transparent h4" data-toggle="tab" id="v-pills-319583-tab" href="адрес" role="tab" aria-controls="v-pills-319583" aria-selected="true"></a>

$('#v-pills-tab a').hover(function (e) {
      $(this).tab('show');
    });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sharomet, 2020-10-29
@sharomet

And if so

$('#v-pills-tab a').hover(function (e) {
$(this).click();
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question