Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>select box test</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
  <style type="text/css"></style>
  
  <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
          <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css" rel="stylesheet" />
  <link href="https://cdnjs.cloudflare.com/ajax/libs/jquery.selectboxit/3.8.0/jquery.selectBoxIt.css" rel="stylesheet" />
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.selectboxit/3.8.0/jquery.selectBoxIt.min.js"></script>
  
  </head>
  <body>
    <span>selectboxit</span>
    
    <select class="selectboxit"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    <select class="selectboxit"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    <select class="selectboxit"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    <select class="selectboxit"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    
    <span>select2</span>
    
    <select class="select2"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    <select class="select2"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    <select class="select2"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    <select class="select2"><option>Opción 1</option><option>Opción 2</option><option>Opción 3</option></select>
    
  <script type="text/javascript">    
    
      // Calls the selectBoxIt method on your HTML select box
  $(".selectboxit").selectBoxIt({
    // Triggers the native select box when a user interacts with the drop down
  native: true
  });
    
    $('.select2').select2({      
      minimumResultsForSearch: Infinity,
      width: '400px'
    });
  </script>
</body></html>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers