/ Published in: JavaScript
Method for setting maximum on JQuery tools rangeinput slider. Add this method to RangeInput $.extend with the other get/set methods.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
setMax: function(val) { conf.max = parseFloat(val, 10); range = conf.max - conf.min; self.setValue(value > conf.max ? conf.max : value, $.Event("click")); }