Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script>
    function ch(val) {
      const textValue = document.getElementById('test').value;
      alert('textValue: '+textValue);
      alert('selectValue: '+val)
    }
  </script>
</head>
<body>
<input type="text" id="test" />
<select onchange="ch(this.value)">
  <option value=1>ciao</option>
  <option value=2>ciaone</option>
  <option value=3>vero</option>
</select>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers