I got three buttons which should set the value for a group of sliders and the textfields for the slider value output. The function does however only change one of the sliders.
See: http://jsfiddle.net/josepha/anb9G/
//slider
$("#slider-design").slider({
range: "min",
value: 2,
min: 1,
max: 5,
slide: function (event, ui) {
$("#amount-design").val(ui.value);
}
});
$("#amount-design").val($("#slider-design").slider("value"));
$("#slider-pages").slider({
range: "min",
value: 5,
min: 1,
max: 10,
slide: function (event, ui) {
$("#amount-pages").val(ui.value);
}
});
$("#amount-pages").val($("#slider-pages").slider("value"));
$("#slider-hours").slider({
range: "min",
value: 5,
min: 0,
max: 10,
slide: function (event, ui) {
$("#amount-hours").val(ui.value);
}
});
$("#amount-hours").val($("#slider-hours").slider("value"));
$("#preset-small").click(function () {
$("#slider-pages").slider("value", 5);
$("#slider-design").slider("value", 1);
$("#slider-hours").slider("value", 5);
});