0

I have a select element with some option items and I want to change the blue background color of items (option) when they hover. here is the bootstrap 5 code:

        <div class="input-group">
          <select class="form-select" id="inputGroupSelect04" aria-label="Example select with button addon">
            <option selected>Choose Your operating System</option>
            <option value="1">Windows</option>
            <option value="2">Mac</option>
            <option value="3">Linux</option>
          </select>
          <button class="btn download-btn" type="button">Download</button>
        </div>
ali
  • 37
  • 6
  • Does this answer your question? [Change select box option background color](https://stackoverflow.com/questions/12836227/change-select-box-option-background-color) – HDP Jun 24 '22 at 04:39
  • Hi my friend. that was not the answer of my question. at that question the background of option items of a select tag changes but wat I want is to change the default blue color when you hover the option items – ali Jul 05 '22 at 15:53
  • There are only a few style attributes that can be applied to an – HDP Jul 06 '22 at 04:56

0 Answers0