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.10.2.min.js"></script>
<meta charset=utf-8 />
<title>Pseudo Select</title>
  <style>
    .pseudo-select {
      border: 1px solid black;
      width: 200px;
    }
    .pseudo-option {
      cursor: pointer;
      border: 1px solid #eee;
    }
    .pseudo-option.selected {
      background-color: #33c;
      color: white;
    }
  </style>
</head>
<body>
  <div class="pseudo-select">
    <div class="pseudo-option" data-value="1">One</div>
    <div class="pseudo-option" data-value="2">Two</div>
    <div class="pseudo-option" data-value="3">Three</div>
    <div class="pseudo-option" data-value="4">Four</div>
    <div class="pseudo-option" data-value="5">Five</div>
    <div class="pseudo-option" data-value="6">Six</div>
    <div class="pseudo-option" data-value="7">Seven</div>
    <div class="pseudo-option" data-value="8">Eight</div>
    <div class="pseudo-option" data-value="9">Nine</div>
  </div>
  <script>
    (function() {
      $(".pseudo-option").click(function() {
        $(this).toggleClass("selected");
      });
    })();
  </script>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers