I was dreading the thought of having to create a separate HTML element for the slider that has fewer steps than the other - surely there is a way to change the steps of a slider and make Dragdealer recalculate it all like it does on initialisation?
Turns out, there is:
Code:
var slider = new Dragdealer( ... ); slider.options.steps = 2; // sets the attribute value slider.stepRatios = slider.calculateStepRatios(); // calculates step ratios based on attribute value