スライダーを定義済みの値にロックするオプションはありますか? つまり
値: ["7.5", "15", "35", "65", "99", "125", "150", "199", "299", "399", "499"],
ここで、「7.5」を 15,35.....499 に移動したいだけです。
どのように可能ですか?「7.5」からスライダーを開始すると、43、79が表示されるため、これらの値は必要ありません。スライダーは指定された値のみを移動します! お願いできますか!
if($('#range_slider_a').length) {
$("#range_slider_a").ionRangeSlider({
type: "single",
step: 10,
postfix: " $",
min: 7.5,
max: 499,
//from: 7.5,
hasGrid: true,
values: ["7.5", "15", "35", "65", "99", "125", "150", "199", "299", "399", "499"],
onChange: function(obj) {
var current_price = $('#range_slider_a').prop("value");
$('#contact_limit').empty().append(''+current_price);
$('#contact_price').empty().append(''+current_price);
//alert(current_price);
},
});
}