I am looking to customize a select element to choose a month. I want the dropdown list to display only the name of the months (e.g., January, February). However, in the selected value box of the select element, I would like to show a FontAwesome icon representing a calendar followed by the name of the selected month.
This is how I envision the styled select with the closed dropdown list:
https://i.sstatic.net/Had0x.jpg
I have achieved the custom styling, but my current dropdown list looks like this:
https://i.sstatic.net/FmYGi.jpg
What I'm aiming for is a design similar to this (without the calendar icon being duplicated):
https://i.sstatic.net/QffiI.jpg
Here is the code snippet I am currently using:
<select>
<option value="all"> All</option>
<option value="m01"> January</option>
<option value="m02"> February</option>
</select>
Can anyone provide guidance on achieving the desired layout?