Hi
I have the following form:
ProductName<input type="text" name="productname" />
Quantity<input type="text" name="quantity" />
Price<input type="text" name="price" />
<input type="button" value="Add" onclick="return add();" />
After clicking Add button, it will show a table with rows (Pressing one time, then add one row):
Product Image (Select from DB according to ProductName) | ProductName | Quantity | Price Total (QxP) RemoveButton
Q.1 How to create that add() javascript to add create the table matrix?
Q.2 Each row has a remove button let user remove a single row in table, how to create that remove button with js?
Q.3 How to use for loop to insert multiple rows of data into DB? as the field name is the same
Thanks