I am currently using a select2 plugin to handle select boxes, where the options are generated by concatenating two values together. However, I am looking for a way to style one of the values in the select2 box with a different color. Are there any options or solutions available for this situation?
Here is an example of my HTML code:
<select id="template" class="form-control template-select-search" style="display: inline-block; width: 200px;">
<option value="">-- Template --</option>
<option value="${article.id}">value1 : value2 </option>
</select>
I have been searching through various resources, but have not been able to find a solution to modify value2 for styling purposes. Any help or suggestions would be greatly appreciated.
You can view the PLUNKER that I have created for reference.