Posted By

dmertl on 11/03/10


Tagged

javascript jquery slider tools maximum rangeinput 125 setmax


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


JQuery Tools RangeInput - Set maximum


 / Published in: JavaScript
 

Method for setting maximum on JQuery tools rangeinput slider. Add this method to RangeInput $.extend with the other get/set methods.

  1. setMax: function(val) {
  2. conf.max = parseFloat(val, 10);
  3. range = conf.max - conf.min;
  4. self.setValue(value > conf.max ? conf.max : value, $.Event("click"));
  5. }

Report this snippet  

You need to login to post a comment.