0
ProductList web app
Iam building a productlist web app which allow users to insert products with name and price..etc..I made all of it but the problem is when the user add prodcut for first time it is added to a div normally but if he tries to add another product it overwrites the previous product..i want method allows user to add products as he want ...u can help in javascript or php Note: i made a page for user to insert the data of the product like name and price and a page to display the products. here is the link: https://code.sololearn.com/WWwYPgeQwUdS/#
1 Answer
+ 9
Your code isn't available anymore. So, it's hard to tell what is wrong with your program.
Here's en example how you can append a new child, instead of overwriting.
https://www.w3schools.com/jsref/met_node_appendchild.asp