Hey folks,

I need to select all but the first and the 3 last rows of a table. I found out that the following works:

$('table tr:gt(0):not(:last:last:last)')

Whoever it does not seem particular elegant to me and jQuery is always (!) elegant, so I'm wondering if one of you could come up with something cooler : ).

(I know that giving the elements I'm looking for a class name is probably the desirable solution in the long run but I'm interested in the problem itself and changing the markup is cheating ^^)

-- Felix
--------------------------
My Blog: http://www.thinkingphp.org
My Business: http://www.fg-webdesign.de

Reply via email to