I have a page, where the user should put the quantity and value of each item. He can add as many items as he wants. Below the page, it will show the total result of the sum of all possible rows that the user adds.
See the Fiddle below for a better understanding.
JsFiddle: link
This structure is almost finished. The only problem that is happening is that when adding a new field, if any of the values are empty, the total value displayed is empty. I believe that it is necessary to make the calculation for each one of the lines, and to add the value of all the lines.