Widget:PriceCalculator: Difference between revisions
Jump to navigation
Jump to search
(math.max) |
(append an object) |
||
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('th').textContent(header); | row.appendChild(document.createElement('th')).textContent(header); | ||
row.appendChild('td').textContent(textContent); | row.appendChild(document.createElement('td')).textContent(textContent); | ||
return row; | return row; | ||
} | } |