0
- I have a table with 50 lines
- Of these only 10 are visible
- Added the css class "ux-select" to line 5
The code $('table tbody tr:visible.ux-select').index()
will tell me what the row number in the context of the table as a whole (will return 5)
Question: How do I get the relative position of this line, IE, as the table only has 10 visible lines, the line 5 that is with the class ux-select
, is in what position among the visible ones? (1st? 2nd? 3rd?.... nº?)
Put the code of how this table was assembled, it would be easier to help you :). If it is too big use jsfiddle
– Marconi
The table is 100% dynamic! So I gave a simple and very generic example! More if you answer based on it already helps me!
– Luiz Felipe
it can be dynamic, but it is generated only html for the browser, you can try right button to display source code..
– Lennon S. Bueno
I edited the question! see if I can be clearer now!
– Luiz Felipe