New Mobile Guy
Posts: 0
Joined: Tue Jan 29, 2013 9:09 pm

dynamically adjust slide min and max

Is there a way to set the min and max value for a slider in javascript?

In the UI, the values are called "Max. Value" and "Min. Value". Can I set these dynamically?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

dynamically adjust slide min and max

Hello!

To get current min/max value use:

var sliderMax = Tiggzi("mobilesliderName").attr("max");
var sliderMin = Tiggzi("mobilesliderName").attr("min");

to set new min/max value use:

Tiggzi("mobilesliderName").attr("max", 1000);
Tiggzi("mobilesliderName").attr("min", 500);
Tiggzi("mobilesliderName").slider("refresh");

and here is the short record of described above lines:

Tiggzi("mobilesliderName").attr("max", 1000).attr("min", 500).slider("refresh");

Return to “Issues”