Need help opening a tab from a text link
Hi,
I'm new to Joomla and jquery.
I have been trying to figure out how to open a specific tab from a text link.
Here are my tabs:
- <ul>
<li>
<a href="#tab1">Details</a>
</li>
<li>
<a href="#editorReviewTab">Editor Reviews</a>
</li>
<li>
<a href="#tab2">User Reviews</a>
</li>
<li>
<a href="#tab5">Related Content</a>
</li>
</ul>
I have found this in the documentation
var $tabs = $('#example').tabs(); // first tab selected
$('#my-text-link').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to third tab
return false;
});
I am just not familiar enough to understand how to change this to adapt to my code.
Thank you