Switch to selected tab by name in Jquery-UI Tabs
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2009-02-23T16:45:23Z
Indexed on
2010/05/01
3:37 UTC
Read the original article
Hit count: 257
If I have three tabs:
<div id="tabs">
<ul>
<li><a href="#sample-tab-1"><span>One</span></a></li>
<li><a href="#sample-tab-2"><span>Two</span></a></li>
<li><a href="#sample-tab-3"><span>Three</span></a></li>
</ul>
</div>
I would like to swap to #sample-tab-2 by it's name. I know I can switch to a tab if I know it's number, but in the case I've run into I won't know that.
Notes: JQuery 1.3.1 / JQuery-UI 1.6rc6
© Stack Overflow or respective owner