E
eggie5
I have a string representing a table row: row='<tr><td>this is a row</
td></tr>
I would like to add it to my table by calling appendChild on my table
tbody element like this:
tbody.appendChild(row);
However, appendChild only works with elements, how can I do this?
Convert my string to an element object?
td></tr>
I would like to add it to my table by calling appendChild on my table
tbody element like this:
tbody.appendChild(row);
However, appendChild only works with elements, how can I do this?
Convert my string to an element object?