var elements = myrow.getElementsByTagName('td')[2].childNodes; for (var j=0; j