Hello,
I'm having a problem with getting my sliders a bit depending. They
should depend on a value in a text field.
I have 5 different sliders with a range from 0 to 100 and the text
field has the value of 300 which is the total amount that can be used
in these 5 sliders. This is my code:
onChange: function(value) {
total.value = total.value-(-(attribute01.value-value));
attribute01.value = value;
if(total.value < 0) {
attribute01.value = attribute01.value-(-total.value);
total.value = 0;
this.setValue(10); //What to put here?
}
}
My question is how to set the value of the slider I just changed to a
different value?
Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---