I am using jquery tabs within Wordpress as follows:-
[tab name="Compliments Form"][contact-form-7 id="158" title="Compliments Form"][/tab]
[tab name="Complaints Form"][contact-form-7 id="159" title="Complaints Form"][/tab]
[tab name="Work for us"][contact-form-7 id="160" title="Central Morley - Work Form"][/tab]
[end_tabset]
I can set the 'active' tab as follows:-
jQuery(document).ready(function() {
jQuery('#tabs-1').tabs({ active: 1 }); // either 0, 1 or 2
});
Basically I have 3 links on the homepage that all come to this same page, I would like to somehow set the 'Active Tab' depending on which link is clicked.
Maybe I need to pass something extra from the link from the homepage so I can determine which tab I need to set active, I'm just unsure how I could achieve this so any help would be much appreciated!
Here is an example link from the homepage:-
<a id="compliments-form" href="http://www.taxileeds.com/demo/enquiries/">
<button>Compliment Form</button>
</a>