Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset=utf-8 />
  <title>JS Bin</title>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
</head>
<body>
  <select>
    <option value="a">Option A</option>
    <option value="b">Option B</option>
  </select>
</body>
</html>
 
console.log('Total: ' + $('option').length + ', visible: ' + $('option:visible').length);
Output

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

Dismiss x
public
Bin info
brandonhillpro
0viewers