Active Bootstrap v4 tabs from inside text

$('a.customtabopen').click(function(e) {
e.preventDefault();
$('a[href="' + $(this).attr('href') + '"]').tab('show');
});

add class, custom tab open in all text links

Easiest way to active / Switch Bootstapv4 Tab by creating custom jQuery function & add this class(customtabopen) to all anchor tag.

This class is changeable for multiple tabs

2 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *