I'm trying to alert only values without html tags from a selected table row. What's wrong with the following function:
function show_table_row(row) {
var arr = [];
var t_row = document.getElementById("table_id").rows[row].innerHTML;
for (var i = 0; i < t_red.length; i++)
{
arr.push(t_row [i]);
}
alert(arr.join("\n"));
}