I have radio inputs like this:
<input type="radio" name="battery" class="radio" value="0" id="63" />
<label for="63">SoH 63-65%</label>
<input type="radio" name="battery" class="radio" value="100" id="66" />
<label for="66">SoH 66-67%</label>
<input type="radio" name="battery" class="radio" value="200" id="68" />
<label for="68">SoH 68-69%</label>
and this:
<input type="radio" name="year" class="radio" value="400" id="2015" />
<label for="2015">2015 year</label>
<input type="radio" name="year" class="radio" value="500" id="2016" />
<label for="2016">2016 year</label>
Their walues sum up all values by clicking on this button
<button class="load-more-btn" id="sumUp>
Sum up
</button>
And result should be outputted with this script:
document.getElementById("price").innerHTML = RESULTVALUE;
How can I do this?