JQuery Tools RangeInput - Set maximum

/ Published in: JavaScript
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.