is there a way to only get the first set of matches? I'm trying to select only all of the first set of tr under tbody and not any tr under first set of tr.
just wondering if there is an easier way to accomplish this just using the query selecter. I tried using > tbody > tr as I would a css selector, but no results are returned.
Hello,
is there a way to only get the first set of matches? I'm trying to select only all of the first set of tr under tbody and not any tr under first set of tr.
html:
example.querySelectorAll('tbody tr');
I get all 3 tr instead of the upper 2. Is this possible?
I'm able to take a slightly longer route to achieve this
just wondering if there is an easier way to accomplish this just using the query selecter. I tried using > tbody > tr as I would a css selector, but no results are returned.