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-2.1.0.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<select multiple id="multiple">
    <option value="1" type="Alice" selected>Option 1</option>
    <option value="2" type="Bob" selected>Option 2</option>    
    </select>
</body>
</html>
 
var types = $('#multiple > option:selected').map(function() {
    return this.getAttribute('type');
}).get();
console.log(types);
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers