I have a tabbed table with 3 tabs - Day Courses, Evening Courses and Online Courses with jquery-ui.min.js
I want to be able to link to these tabs from other pages on the site, so a link to Evening Courses will bring me to the courses page and the Evening Tab will be active. I have tried a number of suggestions I found online but none work I can only link to what ever tab is already active. Most of the suggestions that come up seemed to be for Bootstrap but I am not using Bootstrap nor is it an option at this stage. If anyone can advise me if this is actually possible and if so a nod in the right direction would really be appreciated it.
This is a simplified version of my code:
<div id="tabs">
<ul>
<li class="active"><a href="#tabs-2">Day Course</a></li>
<li><a href="#tabs-3">Evening Courses</a></li>
<li><a href="#tabs-4">Online Courses</a></li>
</ul>
<div id="tabs-2" style="display:block;">
<p>Tab 2 content</p>
</div>
<div id="tabs-3" style="display:none;">
<p>Tab 3 content</p>
</div>
<div id="tabs-4" style="display:none;">
<p>Tab 4 content</p>
</div>
</div><!-- /End the tabs-1 -->
jQuery(function() {
jQuery( "#tabs" ).tabs();
});