I can initialize the slider from both class and id property.
However, I can't get the value when the slider is instantiated from class:
The second console.log below produces "Cannot read property 'value' of undefined"
$(
"#slider"
).kendoSlider({
min:0,
max:100,
value: 10,
smallStep: 10,
largeStep: 50,
showButtons:
false
});
$(
".slider"
).kendoSlider({
min:0,
max:100,
value: 20,
smallStep: 10,
largeStep: 50,
showButtons:
false
});
var
$sliderFromId = $(
"#slider"
).data(
"kendoSlider"
);
console.log($sliderFromId.value());
var
$sliderFromClass = $(
".slider"
).data(
"kendoSlider"
);
console.log($sliderFromClass.value());