html - Getting value from table cell in JavaScript...not jQuery -


I can not believe how long it took me but I do not know how to remove cell costs I'm using the following to anchor an HTML table, as I repeat through the table with Javascript:

  var refTab = document.getElementById ("ddReferences ") Var ttl; // Loop through all the rows and columns of the line and through the popup warning with the value of each cell // // content. For (var i = 0; row = refTab.rows [i]; i ++) {row = refTab.rows [i]; For (var j = 0; col = row.cells [j]; j ++) {warning (col.firstChild.nodeValue); }}  

What does it mean to put me in the right call (call) to display the contents of each cell in my HTML table? It should be in JS ... Can not use jQuery

  function GetCellValues ​​() {Var table = document. GetElementById ('mytable') ; (Var r = 0, n = table.rows.length; r  

Comments