I need the following values to be shown, currently not possible with the linear slider.
Min: $0
Increments ($100): $100; $200; $300; $400; $500; $600; $700; $800; $900
Default: $1,000
Increments ($1,000): $2,000; $3,000; $4,000; $5,000; $6,000; $7,000; $8,000; $9,000; $10,000;
Max: $10,000+
So I have total of 21 non-linear values to select in my snap to increment slider. Is there any way to manually input each of these values in the jQuery code? Or possible to put two algorithms for the the different increment values ($100 and $1,000) in the same slider?
Thank you.
Current code added below. It's not much… value should be value:1000, but for now has been set to 5,000 because I want the default value to be in the middle of the slider. From $1,000 to $0 - $100 step increment is ok but from $1,000 to $10,000+ it's not good for the users.
<title>Budget Slider</title>
<script>
$(function() {
$( "#slider" ).slider({
value:5000,
min: 0,
max: 10000,
step: 100,
slide: function( event, ui ) {
$( "#amount" ).val( "$" + ui.value );
}
});
$( "#amount" ).val( "$" + $( "#slider" ).slider( "value" ) );
});
</script>