title: jQuery: change the value of input range continuously with mousedown event
body: <p>I am trying to change the value of input range continuously with until mousedown on a button</p>
  <p>code i tried <br>
  HTML</p>
  <pre><code>&lt;input type=&quot;range&quot; id=&quot;points&quot; value=&quot;50&quot; min=&quot;10&quot; max=&quot;100&quot; step=&quot;1&quot; /&gt;
  &lt;input type=&quot;button&quot; id=&quot;plus&quot; value=&quot;+&quot; /&gt;
  &lt;input type=&quot;button&quot; id=&quot;minus&quot; value=&quot;-&quot; /&gt;
  </code></pre>
  <p>jQuery</p>
  <pre><code>$('#plus').on('mousedown', function() {
    oldvalue = parseInt($('#points').val());
    $('#points').val(oldvalue + 5).change();
    console.log($('#points').val());
    });
  
  $('#minus').on('mousedown', function() {
    oldvalue = parseInt($('#points').val());
    $('#points').val(oldvalue -  5).change();
    console.log($('#points').val());
    });
  </code></pre>
  <p><a href="http://jsfiddle.net/3x6hykp5/" rel="nofollow noreferrer">jsfiddle</a>
  <br><br>
  with this code value of input range is changed only once, but my requirement is keep changing  the  value untill mousedown
  <br><br>Thanks in advance for help</p>