rhytha
06-09-2005, 01:54 AM
I need help on this,
I have a 6 dropdown boxes with values from 0 to 10, what i need to do is i need to restrict the sum of all 6 drop boxes selected values to be a constant 10, i.e if a user selets on box1 as 5 then the values in other boxes should automatically change to a maximum value of 5, graphically :)
User A(Selects)
Box1 --> 1 - 10 ---> 4
Box2 --> 1 - 10 ---> 10 changes to 6(max value)-> User selects 4 out of 6
Box3 --> 1 - 10 ---> 6 changes to 2(max value)-> User selects 2 out of 2
Box4 --> 1 - 10 ---> 2 changes to 0
Box5 --> 1 - 10 ---> 2 changes to 0
Box6 --> 1 - 10 ---> 2 changes to 0
So the sum of the box's should not exceed 10 and the box's should rearrange thier values according to the selected values, I know this is doable in javascript but i am not too much into JS scripting
Thank you in advance for any replies :)
I have a 6 dropdown boxes with values from 0 to 10, what i need to do is i need to restrict the sum of all 6 drop boxes selected values to be a constant 10, i.e if a user selets on box1 as 5 then the values in other boxes should automatically change to a maximum value of 5, graphically :)
User A(Selects)
Box1 --> 1 - 10 ---> 4
Box2 --> 1 - 10 ---> 10 changes to 6(max value)-> User selects 4 out of 6
Box3 --> 1 - 10 ---> 6 changes to 2(max value)-> User selects 2 out of 2
Box4 --> 1 - 10 ---> 2 changes to 0
Box5 --> 1 - 10 ---> 2 changes to 0
Box6 --> 1 - 10 ---> 2 changes to 0
So the sum of the box's should not exceed 10 and the box's should rearrange thier values according to the selected values, I know this is doable in javascript but i am not too much into JS scripting
Thank you in advance for any replies :)