Anand Anand - 1 year ago 77
Javascript Question

How to get selected value of double number range picker

How i can get the value of selected minimum and maximum range value


<div class="wrapper" style="width: 400px; margin: 100px auto; padding: 40px;">
<div id="double_number_range" style="margin-top: 50px;"></div>
<input type="submit">


(function() {
"use strict";
type: "double",
startValue: 0,
endValue: 100,
translateSelectLabel: function(currentPosition, totalPosition) {
return parseInt(100 * (currentPosition / totalPosition));


Answer Source

Probably there will be better solutions using for example a callback function but you can use the following code too:

$("input[type=submit]").on('click', function() {
  var minValue = parseInt($('').text(), 10);
  var maxValue = parseInt($('').text(), 10);
  console.log(minValue, maxValue);