I'm using select2 4.0.1, and I need to change the font for some words. More specifically, I need to show codes AK and HI in bolder/different font, something like this:
<select id="select2" style="width:300px">
<optgroup label="Alaskan/Hawaiian Time Zone">
<option value="AK"><strong>AK</strong> Alaska</option>
<option value="HI"><strong>HI</strong> Hawaii</option>
</optgroup>
Is it possible? How can I accomplish that?
$('.select2-results__option').css('font-weight', 'bold');
– NyctalopiaAK
andHI
codes ? – Zworykin