midstack
midstack

Reputation: 2123

How can I set floating number using jquery roundslider plugin?

I use jquery roundslider plugin http://roundsliderui.com/ but I can't set floating number. When I set a floating number plugin round the value, but I don't want this. How can I solve this?

$("#slider").roundSlider({
    sliderType: "min-range",
    value: 40
});

http://jsfiddle.net/soundar24/s5gpugjn/

Upvotes: 1

Views: 264

Answers (1)

Soundar
Soundar

Reputation: 2589

The roundSlider having the step property, based on this the slider increments or decrements the value. So if you want to allow floating number, then you can set the step value as "0.1", "0.01" or "0.001" based on how many decimals you want.

Check the below demo:

DEMO

Upvotes: 1

Related Questions