Javscript, How to get sum of multiple fields that have same id and get the value of each summation : Okay so i have a loop dynamic input field ID but i will show how it look likes.

the output is like this

`<input type="text" id="sp_criteria1">` value -> 20

`<input type="text" id="sp_criteria1">` value -> 25

i need the sum of this ^ = 45 

`<input type="text" id="sp_criteria3">` value -> 20

`<input type="text" id="sp_criteria3">` value -> 25

i need the sum of this ^ = 45 

`<input type="text" id="sp_criteria5">` value -> 20

`<input type="text" id="sp_criteria5">` value -> 25

i need the sum of this ^ = 45 

`<input type="text" id="sp_criteria6">` value -> 20

`<input type="text" id="sp_criteria6">` value -> 25

`<input type="text" id="sp_criteria6">` value -> 20

i need the sum of this ^ = 65

so i need to get those sum at the same time 45 45 45 65
