Oh, I see. You wish to use a hash parameter. You should have said!
So, if your page is named mypage.html and you wish it to open the 2nd tab, you could call the page using mypage.html#2, and then use this code...
- $(function() {
- $("#tabs" ).tabs( { active: window.location.hash - 1 } ); //subtract one because zero-based
- });
That should do it.
Or... instead of using " - 1 " you could instead call the page using mypage.html#1 for the 2nd tab. It's up to you what numbering convention you wish to use for your hash value.
Best wishes,
Alan