Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- bootstrap -->
  5. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  6. <!-- select2 -->
  7. <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
  8. <!-- select2-bootstrap4-theme -->
  9. <link href="https://raw.githack.com/ttskch/select2-bootstrap4-theme/master/dist/select2-bootstrap4.min.css" rel="stylesheet"> <!-- for live demo page -->
  10. <link href="select2-bootstrap4.css" rel="stylesheet"> <!-- for local development env -->
  11. </head>
  12. <body class="pt-5" style="min-height:90vh">
  13. <div class="container">
  14. <h3>Example of <a href="https://github.com/ttskch/select2-bootstrap4-theme" target="_blank">@ttskch/select2-bootstrap4-theme</a></h3>
  15. <hr>
  16. <form>
  17. <div class="form-group">
  18. <label>Example of select</label>
  19. <select placeholder="Choose one thing" data-allow-clear="1">
  20. <option></option>
  21. <option>1</option>
  22. <option>2</option>
  23. <option>3</option>
  24. <option>4</option>
  25. <option>5</option>
  26. </select>
  27. </div>
  28. <div class="form-group">
  29. <label>Example of multiple select</label>
  30. <select multiple placeholder="Choose anything" data-allow-clear="1">
  31. <option>1</option>
  32. <option>2</option>
  33. <option>3</option>
  34. <option>4</option>
  35. <option>5</option>
  36. </select>
  37. </div>
  38. <div class="form-group">
  39. <label>Example of disabled select</label>
  40. <select disabled placeholder="Cannot choose">
  41. </select>
  42. </div>
  43. <div class="form-group">
  44. <label>Example of select with optgroup</label>
  45. <select placeholder="Choose one thing">
  46. <option></option>
  47. <optgroup label="Group A">
  48. <option>A1</option>
  49. <option>A2</option>
  50. <option>A3</option>
  51. </optgroup>
  52. <optgroup label="Group B">
  53. <option>B1</option>
  54. <option>B2</option>
  55. <option>B3</option>
  56. </optgroup>
  57. </select>
  58. </div>
  59. <div class="form-group">
  60. <label>Example of input-group</label>
  61. <div class="input-group">
  62. <div class="input-group-prepend">
  63. <span class="input-group-text">Prepend</span>
  64. </div>
  65. <select placeholder="Choose on thing">
  66. <option></option>
  67. <option>1</option>
  68. <option>2</option>
  69. <option>3</option>
  70. </select>
  71. </div>
  72. </div>
  73. <div class="form-group">
  74. <label>Example of validated select</label>
  75. <select placeholder="Invalid example" class="form-control is-invalid">
  76. <option></option>
  77. </select>
  78. <div class="invalid-feedback">
  79. Something is wrong.
  80. </div>
  81. </div>
  82. </form>
  83. </div>
  84. <!-- bootstrap -->
  85. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  86. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
  87. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  88. <!-- select2 -->
  89. <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
  90. <!-- select2-bootstrap4-theme -->
  91. <script src="script.js"></script>
  92. </body>
  93. </html>