See this recent post for how to add a row to a table using an HTML template (there are other ways):
https://www.sitepoint.com/community/t/adding-rows-to-table-with-button-to-remove/434396/6
The quantity cells could have this HTML:
<td><button>-</button><input type="text"><button>+</button></td>