I am using IonRangeSlider in which I have 3 custom values :
["Value1","Value2","Value3"]
And the type is single
.
Now what I want is , I want to detect the from and to values in a way If I switch from Value1
to Value2
then I want both of them values in 2 different variables as I have some calculations based on from and to values. But what I am able to do is just can get the From value like Value1
.
Below is my code.
$('#Strategy').ionRangeSlider({
type: 'single',
grid: true,
values: ["Value1","Value2","Value3"],
onFinish: function (obj) {
alert(obj.from_value);
}
});