jquery ui slider using Inches
问题 I need to use a Jquery UI Slider with Inches. I know how to get the slider to work with standard numbers eg: 0 to 100 but I'm not sure how to get inches to work. I assume an extra calculation is needed - maybe. Any advice on how to get this one working? 回答1: Here's something that should get you started: function toFeet(n) { return Math.floor(n / 12) + "'" + (n % 12) + '"'; } $(function () { $("#slider").slider({ min: 55, max: 85, values: [60, 80], range: true, slide: function(event, ui) { //