The following code gets all the tr tags in #mytable:
tr
#mytable
table = document.getElementById("myTable"); trs = table.getElementsBy