How can I add rows to a table with this structure using Javascript?
Basically I want to be able to click a button and have a new row created within the table for each of the columns used below. So for instance, it could be name: new book, quantity:30 etc.
<table id="dynamictable">
<tbody>
<tr>
<td class="name">My Favorite book</td>
<td class="quantity">x 20</td>
<td class="unit_price">£8.99</td>
<td class="total">£179.80</td>
<td class="remove">
<img src="image/cross.png">
</td>
</tr>
</tbody>
</table>