user interface - jQuery Slider Step Attribute Not Working -


here code using create slider:

    $(".slider").slider({      steps: 10,      animate: true,     range: true,      min: 0,      max: 500,      values: [range[0],range[1]],     change: function() {          range = $( ".slider" ).slider("option", "values");         $("#low-price").text("min: $"+range[0]);         $("#high-price").text("max: $"+range[1]);     }  }); 

the problem step attribute not function properly. above code think each slide change value 10, stepping 1 value @ time. ideas on wrong here?

the problem option name, should step not steps, this:

$(".slider").slider({      step: 10,          //step, singular     animate: true,     range: true,      min: 0,      max: 500,      values: [range[0],range[1]],     change: function() {          range = $( ".slider" ).slider("option", "values");         $("#low-price").text("min: $"+range[0]);         $("#high-price").text("max: $"+range[1]);     }  }); 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -