Hello,
I found some custom code related to having links become capable of opening up specific tabs. My question is, how can I use this code across multiple links and tabs? For example, if I have 3 links and 3 different tabs, I would like for each link to open up one of the three tabs. Does this code only work 1:1?
<script>
$('.custom-button').on('click', function (evt) {
$('.target-tab-link').triggerHandler('click');
evt.preventDefault();
});
</script>
I understand that my link will get the class element “custom-button” and my tab link will get the class element “target-tab-link”, but if I want my second link to open up my second tab, how do I get the code to have a unique class element so that all links don’t open up the same tab?
Thanks for any help provided!