Overall Totals

B

bill

Can someone help please.
I am trying to get an overall total using 3 different sets of radio
buttons. Each set of radio buttons must use at least the default value
but allow the user to select any other of the selections. What ever
selection is selected the overall total is amended depending on the
selection. There must be at least one selection selected from each set
of radio buttons and only one.
first options a = value 100 b = value 200 c = value 300 d = value 400. a
is the default value and is selected when the page opens if the user
changes it to b the overall total is increased by 100.
second options a = 50 b = 60 c = 70 a is default but allows the user to
select b and increase the over all total by 10.
third set of radio button a = 10 b = 20 a is the default again if the
user selects b then 10 is added to overall total and if he then changes
back to a then the overall total changes according to his selections.
When the page opens up with the above selections are set to default values
first set of radio buttons A default value 100
second set of radio buttons A default value 50
third set of radio buttons A default value 10.
This gives the overall total = 160.
Can someone point me in the right direction to keep the overall total in
line with what radio button is selected from each sets of buttons.
Thanks in advance
Bill
 
E

Evertjan.

bill wrote on 24 mrt 2006 in comp.lang.javascript:
I am trying to get an overall total using 3 different sets of radio
buttons. Each set of radio buttons must use at least the default value
but allow the user to select any other of the selections. What ever
selection is selected the overall total is amended depending on the
selection. There must be at least one selection selected from each set
of radio buttons and only one.
first options a = value 100 b = value 200 c = value 300 d = value 400.
a is the default value and is selected when the page opens if the
user changes it to b the overall total is increased by 100.
second options a = 50 b = 60 c = 70 a is default but allows the user
to select b and increase the over all total by 10.
third set of radio button a = 10 b = 20 a is the default again if the
user selects b then 10 is added to overall total and if he then
changes back to a then the overall total changes according to his
selections. When the page opens up with the above selections are set
to default values first set of radio buttons A default value 100
second set of radio buttons A default value 50
third set of radio buttons A default value 10.
This gives the overall total = 160.
Can someone point me in the right direction to keep the overall total
in line with what radio button is selected from each sets of buttons.

A school assignment?
 
E

Evertjan.

bill wrote on 24 mrt 2006 in comp.lang.javascript:

Are you sure? What else could be the sense of the above?

Well, show us your code,
and tell us where you went wrong,
this is not a payed helpdesk doing all your work for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top