hanish.kh
hanish.kh

Reputation: 517

JQuery UI Tabs : How to find target container of currently active tab

Is there any way I can find the target container of the active tab of Jquery UI tabs?

Upvotes: 0

Views: 374

Answers (1)

Milind Anantwar
Milind Anantwar

Reputation: 82231

active container has attribute aria-expanded set to true. so to get the active container you can use:

var container_active= $('[aria-expanded="true"]');

or you can get id of currently active container using:

var active_container_id=$('.ui-state-active a').attr('href').replace('#','')

Upvotes: 1

Related Questions