OK heres the code
Basically the code underlined is what I need help with.
The p[1] is the price taken from a previous page and what I need it to do is to add it to the value. At the moment it is just adding iti to the end of the number. For example if p[1] is 10, then on the first underlined line the result would be 105, the second it would show 1015.
Code:
if ( p[0] == 'price2' ) {
document.getElementById("3").innerHTML = p[1];
[U] document.getElementById("4").innerHTML = p[1] + 5;
document.getElementById("5").innerHTML = p[1] + 15;[/U]
document.getElementById("3").innerHTML = p[1].replace('+', ' ').replace('%C2%A3', '£').replace(' UK', ' ');
The p[1] is the price taken from a previous page and what I need it to do is to add it to the value. At the moment it is just adding iti to the end of the number. For example if p[1] is 10, then on the first underlined line the result would be 105, the second it would show 1015.
Comment