Rails Version: 4.1.4

Ruby Version: 2.2.0

Select2-Rails Version: Gem Version

Example select2-rails

Example Code

  1. <head>
  2. <script>
  3. $(document).ready(function() { $("#e1").select2(); });
  4. </script>
  5. </head>
  6. <body>
  7. <select id="e1">
  8. <option value="AL">Alabama</option>
  9. <option value="WY">Wyoming</option>
  10. </select>
  11. </body>