The code from the first part is this:
So in a div with id value1 and a div with id value 2 the values from the user's selection will appear. No I'm trying to get a function to sum both values by clicking a button.
document.getElementById('value1').innerHTML = "€ " +this.value;
var r = this.value;
document.getElementById('value2').innerHTML = "€ " +this.value;
var q = this.value;
Whatever I try, nothing seems to work. Any help would be highly appreciated. Many thanks in advance!