jQuery index() in relation to all visible siblings

Viewed 5685

I'd like to fetch the index of an element in relation to all visible siblings.

A td.index() does fetch the index of the td to all other td siblings.

But what when some of those TDs are set to display:none. I want to exclude them when calculating the index. td.index(':visible') does not seem to work.

2 Answers
Related