Andy Jacobs
Posts: 0
Joined: Thu Apr 16, 2015 11:34 am

Slider Values

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

Andy Jacobs
Posts: 0
Joined: Thu Apr 16, 2015 11:34 am

Slider Values

Sorted with:

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Slider Values

Thanks for sharing the solution, Andy.

Andy Jacobs
Posts: 0
Joined: Thu Apr 16, 2015 11:34 am

Slider Values

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

Return to “Issues”