Reputation: 499
I want to fix drag input type range in between a max and a min value. My input type range has its min value 0 and max value 100. I want to control this drag between 20 to 80.
How to do it??
P.S. I am using normal jQuery.
I have done this much, now I want to control its dragging between a range, but I want to show the 100% range, user can only drag between 20 to 80
[code Fiddle][1]
I have found this link in stackover. I was trying to edit it but I couldn't find the solution.
Upvotes: 0
Views: 2121
Reputation: 1406
Demo: http://ionden.com/a/plugins/ion.rangeSlider/demo_advanced.html Check the Set "maximum interval size:" demo
<script>
$("#range_120").ionRangeSlider({
type: "double",
min: 0,
max: 100,
from: 30,
to: 70,
max_interval: 50
});
<script>
Upvotes: 1
Reputation: 118
This can be accomplished using HTML5 Range sliders:
<input id="slider1" type="range" min="20" max="80" step="10" />
Source: http://www.html5tutorial.info/html5-range.php
Upvotes: 0