I have the following HTML
<form id="FrmLoja" method="post" action="#">
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="valor[]" id="valor" value="0" />
<input type="text" name="total" id="total" value="" />
</form>
I need to add all values and insert the total result without the need for a reload on the page ... This value field, is a dynamic field, where I have a btn (+) which adds a new line whenever I need , inside the array ... How can I do this sum?