Detail Table Field value Summation

You may use jQuery (or JavaScript) to select the inputs for the quantities by the HTML attribute values. View HTML source to see the HTML attributes. Also read Inspect HTML Elements.