Page 1 of 1

Slider Values

Posted: Thu Apr 16, 2015 2:16 pm
by Andy Jacobs

Hi

I really need a slider with:

Min Value: 0.5
Max Value: 4.0
Step: 0.1

I found a post that suggests using:

$(document).on("pagebeforecreate", function(){
var input = $('input[name="mobileslider_2"]'); // control name
input.attr("step", "0.01"); //step
});

That seems to address the step but not the min and max values.

Any help would be gratefully received!

Cheers
Andy


Slider Values

Posted: Thu Apr 16, 2015 3:17 pm
by Andy Jacobs

Sorted with:

$('input[name="COF"]').attr({max:4,min:0.5,step:0.1}).slider('refresh');


Slider Values

Posted: Thu Apr 16, 2015 3:29 pm
by Illya Stepanov

Thanks for sharing the solution, Andy.


Slider Values

Posted: Thu Apr 16, 2015 3:39 pm
by Andy Jacobs

No problem. I'm really liking what I see so far!