jsFiddle here: http://jsfiddle.net/_mtr/uqMZJ/
Basically, a table with rows, only 10 or so are not hidden when the document is ready. I want the index of the last non-hidden row, but my jQuery selectors are letting me down.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re misusing the :last-child selector, which matches elements that are the last child of their parent. You actually want the last element in the matched set, so you should use the :last selector instead:
You will find an updated fiddle here.