Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  .ui-slider-range {
    top: 0;
    color: #000000;
  }
</style>
</head>
<body>
<div class="demo"> 
 
<p> 
<label for="amount">Volume:</label> 
<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" /> 
</p> 
 hello
<div id="slider-vertical" style="height:300px;"></div> 
 
</div>
</body>
</html>
 
$(function() {
    $("#slider-vertical").slider({
      orientation: "vertical",
      range: "max",
      min: -10,
      max: 100,
      value: -10
    });
    $("#amount").val( 100 -$("#slider-vertical").slider("value"));
  });
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers