Hello, complete newbie for javascript and web stuff in general. Here is my question.
I have a function that creates a table based on the values in a array. I use things like
It all works fine. No problem so far.
But now I would like to make the content of that new cell (currently db.ID) a link. How can I do that?
ANy help appreciated!
I have a function that creates a table based on the values in a array. I use things like
Code:
...
newRow = document.getElementById("myTable").insertRow(1)
newCell = newRow.insertCell(newRow.cells.length)
newCell.innerHTML = db[i].ID
...
It all works fine. No problem so far.
But now I would like to make the content of that new cell (currently db.ID) a link. How can I do that?
ANy help appreciated!