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>
<link rel="stylesheet" href="http://gregfranko.com/jquery.selectBoxIt.js/css/jquery.selectBoxIt.css" />
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css" />
</head>
<body>
  
<div class="container">
  
  <div>
    <select name="test1" class="test1">
      <option value="SelectBoxIt is:">SelectBoxIt is:</option>
      <option value="a jQuery Plugin">a jQuery Plugin</option>
      <option value="a Select Box Replacement">a Select Box Replacement</option>
      <option value="a Stateful UI Widget">a Stateful UI Widget</option>
    </select>
  </div>
  <div>
    <select name="test2" class="test2">
      <option value="SelectBoxIt is:">SelectBoxIt is:</option>
      <option value="a jQuery Plugin">a jQuery Plugin</option>
      <option value="a Select Box Replacement">a Select Box Replacement</option>
      <option value="a Stateful UI Widget">a Stateful UI Widget</option>
    </select>
  </div>
  
</div>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js"></script>
  <script src="http://gregfranko.com/jquery.selectBoxIt.js/js/jquery.selectBoxIt.min.js"></script>
  <script>
    $(function() {
      $(".test2").selectBoxIt({ autoWidth: false, copyClasses: "container" });
    });
  </script>  
</body>
</html>
 
.container {
  background: #999;
  margin: 0 22px;
  width: 320px;
}
.test1, .test2, .test2 .selectboxit, .test2 .selectboxit-options {
  width: 100%;
}
Output 300px

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

Dismiss x
public
Bin info
groodtpro
0viewers