슬라이더를 미리 정의 된 값으로 잠글 수있는 옵션이 있습니까? 즉,ion.rangeSlider 슬라이더를 미리 정의 된 값으로 잠급니다.
값 : [ "7.5", "15", "35", "65", "99", "125", "150", "199", "299", "399" 499 15,35 ..... 499에 "7.5",
지금은 이동하려는
"그것이 어떻게 가능? 왜냐하면 내가 "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);
},
});
}
http://ionden.com/a/plugins/ion.rangeSlider/en.html : https://github.com/IonDen/ion.rangeSlider
슬라이더 올바른 방법을 설정하기 위해이 예제를보십시오 – user2841243