I have a standard table generated from php. There 2 columns, first has text, and second has a number or predefined text (eg 1 or "not present"). I want to change the values of the second column with a script (eg in Greasemonkey), but I am not able to find out what value belongs to which text (the cells that are on the same row) because they don't have an 'id' tag to sort them with. I guess the only option is 'getElementsByTagName', but don't know how to recognize individual text with that and append the cell that follows. Any ideas or templates?