input range - send value in real time

input, real-time

Solution

HTML:

<input type="range" oninput="myFunction(this.value)" value="0" min="0" max="1" step="0.01" />
<span id="currentValue">0</span>

Javascript:

function myFunction(myValue){
  document.getElementById("currentValue").innerHTML = myValue;
}

DEMO

Problem

Is there a way to send a range-type input's value to another element, for example a div, in real time? ``` $(function(){ $('#mySlider').change(function(){ $('#currentValue').html(this.value); }); }); ``` example: http://jsfiddle.net/eWyKH

Original source