Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<script>
  function printValue(sliderID, textbox) {
     var x = document.getElementById(textbox);
     var y = document.getElementById(sliderID);
     x.value = y.value;
  }
</script>
<body>
<form >
Select a value: <input id="slider1" type="range" in="100" max="500" step="10"                             onchange="printValue('slider1','rangeValue1')"/><input id="rangeValue1" type="text" size="2"/> 
</form>
<br/>
Play with attributes : value, min, max, step...
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers