I have a slider with a range from 1007-13138 and a step of 75. But I need to add 2 custom steps that are outside the 75 range, ex. 2013 & 8759. These two values are what specify the start and end points of the slider so I want to be able to select them when sliding. Any suggestions or help would be appreciated - it's my first time using the slider and not quite sure of its capabilities, thanks.
HTML
<div id="slider" data-start="2013" data-end="8759"></div>
<div id="slider-result"></div>
jQuery
$('#slider').slider({
value: $('#slider').data('end'),
min: Math.round($('#slider').data('start') / 2),
max: Math.round($('#slider').data('end') * 1.5),
step: 75,
slide: function (event, ui) {
$('#slider-result').html(ui.value);
}
});
$('#slider-result').html($('#slider').slider('option', 'value'));