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 <lmarte...@haitiwebs.net>:
>
>
> 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 selected
> and start incrementing them for all subsequent selected.
>
> $('#columns > .column').length;
>
> How can I get that value just for selected tab?
>
> Thank you.
> --
> View this message in context: 
> http://www.nabble.com/Interaction-in-tabs-tp25009915s27240p25009915.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>

Reply via email to