Widget:PriceCalculator: Difference between revisions
Jump to navigation
Jump to search
(append an object) |
(textContent is not a function) |
||
Line 44: | Line 44: | ||
function create_output_row(header, content) { | function create_output_row(header, content) { | ||
let row = document.createElement('tr'); | let row = document.createElement('tr'); | ||
row.appendChild(document.createElement('th')).textContent | row.appendChild(document.createElement('th')).textContent = header; | ||
row.appendChild(document.createElement('td')).textContent | row.appendChild(document.createElement('td')).textContent = textContent; | ||
return row; | return row; | ||
} | } |