Home > front end >  How to set the value of two text box input into the back of the list
How to set the value of two text box input into the back of the list

Time:10-11


Can only use javascript to write, the requirement is behind the goods may increase a goods, include name, price and id

CodePudding user response:

If the JS acquires goods list first let HTML=document. The getElementById (" list - the container "). InnerHTML, then add commodity HTML + 6=html6; In rendering, empty goods list, the final document. The getElementById (" list - the container "). InnerHTM=HTML. If JQ directly using the append ();
  • Related