If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Need help with radio inputs and javascript for school project

So we have to let the user input the weight of an item between 0 and 400. and depending on the weight the price per pound is different.

0 - 150 lbs = $20
151 - 300 lbs = $15
301 - 400 = $10

On top of this, there are 3 radio buttons, 50% discount, 25% discount, and No Discount. I'm having trouble detecting which radio button the user has selecting and obtaining the value that i have put for it in the HTML. If somebody could guide me in the right direction, it would be greatly appreciated. Here is my JavaScript...