jquery - jscript ui steps calculation and logic problems -


i'm trying create vps style slider selector using jquery ui i'm not able find correct "max" , "step" numbers, need 6 steps, starting 0, have used:

range: "min", min: 0, max: 6, step: 1, value: 0, 

but not working have expected. selector cursor working odd when click on it, know is max , step value because using example did find max:576 , step 56.8 working fine have rule in ui docs min-max value have divisible step value.

thanks in advance!

well, dont know, if correctly understand you.
if jast want slider snap increments , value between 0 , 6 should so:

$('your-slider-selector').slider({         value:0,         min: 0,         max: 6,         step: 1}); 

and thats all!


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -