Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <link href="//code.jquery.com/ui/1.11.1/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.1/jquery-ui.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  
  <select id="catbiomass" name="categories[]" onchange="clearVolumes()">
    <option value="1">option 1</option>
    <option value="2">option 2</option>
    <option value="3">option 3</option>
  </select>
  <input id="size" type="text" value="100" />
  <input id="amount" type="text" value="100" />
  <input id="hardwood_testet" type="text" value="100" />
  
  <div id="hardwoodslider"></div>
</body>
</html>
 
$( "#hardwoodslider" ).slider({
  range: "min",
  min: 0,
  max: 100,
  step: 5,
  value: 0.00,
  slide: function( event, ui ) {
  $( "#hardwood_testet" ).val( ui.value );
  $(ui.value).val($('#hardwood_testet').val());
  }
  });
$("#catbiomass").onchange(function() {
  $("#hardwoodslider").slider("value" , 0)
});
function clearVolumes() {
    document.getElementById('size').value = "";
    document.getElementById('amount').value = "";
    document.getElementById('hardwood_testet').value = "";
}
Output 300px

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