Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
Subtext for bootstrap 5

The suggested answer is for bootstrap 4 while this is for bootstrap 5

The Sub text for bootstrap 5 select will not work.

I have the following code

<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
      <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
      <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
    <title>Title</title>
  </head>
  <body>
      <select class="form-select" aria-label="Default select example" data-bs-subtext="true">
      <option selected>Open this select menu</option>
      <option value="1" data-bs-subtext="One" >One</option>
      <option value="2" data-bs-subtext="Two" >Two</option>
      <option value="3" data-bs-subtext="Three" >Three</option>
    </select>

  </body>
</html>

The select option will show, however, the sub text won't show

I have tried also with data-bs-subtext changed to data-subtext

I can't find any solutions for bootstrap 5 online

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!