Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<link href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  
<p>
  <input type="text" id="amount" readonly>
</p>
 
<div id="slider"></div>
</body>
</html>
 
body {
  font-family: sans-serif;
  font-size: 12px;
}
#amount {
  font-size: 22px;
  font-weight: bold;
  border:none;
  color: #ff5555;
  background: none;
}
 
$(function() {
  var steps = [0, 50, 90, 330, 500];
    
  $( "#slider" ).slider({
    value: 0,
    min: 0,
    max: steps.length - 1,
    step: 1,
    slide: function( event, ui ) {
      $( "#amount" ).val( "$" + steps[ui.value] );
    }
  });
  
  $("#amount").val( "$" + steps[$("#slider").slider("value")] );
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers