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