Is there a selector available in jQuery to do something like:
$(this).closest('tr:count(tr>2)');
Context of this is an <input> element within a <td>.
Disclaimer: I know this can be done with .length .size .filter .not etc but I wonder if there is a nice way to do this just using CSS selectors.
Didn’t test, but probably
assuming a
trwill only havetrsisters, which is not unreasonable.