Thank you Charlie.
lionel28 wrote:
>
> Hello,
>
> I have 6 tabs. Each one of them contain many elements with class 'column'
>
> I'd like to know, when a tab is selected, how many such elements in that
> selected tab.
>
> no matter how I tried, it gives me the right count on the first one
>
tabs has a getter to find the tab that is selected
http://jqueryui.com/demos/tabs/#option-selected
use that as the index number for the content container for the tab
var selected = $('#tabs").tabs('option', 'selected');
$(".yourTabsContent").eq(selected).find(".column").length
if you are u
You should ask that on jQuery UI group. I've never used the tabs. If
you can get a variable to be a pointer to the currently selected tab
with:
var selectedTab = somthing
you should then be able to do:
selectedTab.find('#columns > .column').length
The problem with the expression you are currently
You totally confuse me here. How do I know a tab is selected? When I click on
it. All tabs have the same class
ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header
ui-corner-all">
--
View this message in context:
http://www.nabble.com/Interaction-in-tabs-tp25009915s27240p
How do you know when a tab is selected? The most usual way is to give
it a class. If the class is called "selected", you should try
something like $('.tab.selected #columns > .column').length
2009/8/17 lionel28 :
>
>
> Hello,
>
> I have 6 tabs. Each one of them contain many elements with class 'c
5 matches
Mail list logo