[SOLVED] Child selectors (first, not first, etc.)


I’m trying to get the “not first” child of a table as I’d do with jQuery, but Dom7 cant find it.

Uncaught DOMException: Failed to execute ‘matches’ on ‘Element’: ‘tr:not(:first)’ is not a valid selector.

This is the piece of code:

Wich is the correct way with Dom7?

Thanks in advance!!

$("#table").find('tr:nth-child(n + 2)')

That’s it. Working perfectly.