Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

Tab selecting

Open jmasejo opened this issue 11 years ago • 2 comments

Hello how to get the name of active tab?

jmasejo avatar Jan 27 '15 01:01 jmasejo

Easy enough: http://jsfiddle.net/u3uyyocp/1/

JS will add the class active to the active tab, so grabbing said text is very simple: $("#tabs>.item.active").text()

Just remember to craft your selector to point to the correct container for the tabs, since pages may have several tab groups

p-hennessy avatar Jan 27 '15 07:01 p-hennessy

thank you!

On 27 January 2015 at 16:00, Patrick Hennessy [email protected] wrote:

Easy enough: http://jsfiddle.net/u3uyyocp/1/

JS will add the class active to the active tab, so grabbing said text is very simple: $("#tabs>.item.active").text()

Just remember to craft your selector to point to the correct container for the tabs, since pages may have several tab groups

— Reply to this email directly or view it on GitHub https://github.com/Semantic-Org/Semantic-UI/issues/1722#issuecomment-71604414 .

jmasejo avatar Jan 27 '15 08:01 jmasejo