<div>
  <select class="form-select" onchange="window.location.href = this.options[this.selectedIndex].value">
                        <option selected disabled>Куда перейти:</option>
                        <option value="https://getbootstrap.com/">Bootstrap Doc</option>
                        <option value="https://website-create.ru">Website-create.ru</option>
                 </select>
                </div>
Run Pen

External CSS

  1. https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css

External JavaScript

  1. https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js