I know this is probably extremely simple to do but i cant't figure it out.All i need is for the value of the variable "price" to change when the radio button is click and for it to be displayed on the page.Thanks for the help.
This is placed in the head
<script>
var price = 500;
if (document.getElementById('wifi').checked) {
price = price + 200;
}
</script>
This is placed in the body of the html page
<input type="radio" name="wifi_price" id="wifi" value="200">Wifi Price</input>
<script>document.write(price);</script>