Sorry, I was in a hurry and just didn't think about the title.
I tried changing it over to that, but I still get an "Value undefined (result of expression theTableRow.getElementsByTagName) is not an object" error.
- var theTable = document.getElementById("hdpart-" + (x+1));
-
var theTableRow = theTable.tBodies[0].getElementsByTagName("tr");
-
var theTableCell = theTableRow.getElementsByTagName("td")[0];
What I'm doing is searching a specific table, then pulling all of the rows from that table, and within those rows, I need to pull the cell information from the specific rows. I've got everything set up, but right now using "theTable.tBodies[0].getElementsByTagName("td")" it searches through all the tables TD elements.
So if there are 2 rows with 9 cells in each table, and I use theTableCell.length I get 54 returned rather than the 18 I was expecting. I just can't figure out how to point it to that specific row.
Thanks for the help!