I'm using the jQuery UI plugin called "range slider" (see http://jqueryui.com/slider/#range) and I'm wondering how to change the intervals from '1' to '10', so that a user gets 10, 20, 30, ...until 1000 when using the slider.
This is my code:
$(function() {
$( "#slider-range" ).slider({
range: true,
min: 1,
max: 1000,
values: [ 75, 300 ],
slide: function( event, ui ) {
var offset1 = $(this).children('.ui-slider-handle').first().offset();
var offset2 = $(this).children('.ui-slider-handle').last().offset();
$(".tooltip1").css('top',offset1.top).css('left',offset1.left).show();
$(".tooltip2").css('top',offset2.top).css('left',offset2.left).show();
$('#min').val("€ " + ui.values[ 0 ]);
$('#max').val("€ " + ui.values[ 1 ]);
},
stop:function(event,ui){
$(".tooltip").hide();
}
});
$('#min').change(function(){
$( "#slider-range" ).slider( "values", 0, $('#min').val() );
});
$('#max').change(function(){
$( "#slider-range" ).slider( "values", 1, $('#max').val() );
});
});
Thanks in advance for your help!