Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  <select id="mySel">
    <option value="a">a</option>
    <option value="b">b</option>
    <option value="c">c</option>
    <option value="d">d</option>
    <option value="e">e</option>
    <option value="f">f</option>
  </select>
  
  <label id="myLbl" for="mySel">
    
  </label>
  <script type="text/javascript">
    var sel = document.getElementById('mySel');
    var lbl = document.getElementById('myLbl');
    sel.onchange = function(){
      lbl.innerHTML = this.options[this.selectedIndex].value;
    };
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
albertmatyipro
0viewers