There is a select element styled as a dropdown list using bootstrap-select. I am interested in adding a specific class with CSS when the select is clicked or changed.
https://i.sstatic.net/fbdK4.png
<select required class="form-control selectpicker" title="shipping">
<option>Standard</option>
<option>Express</option>
<option>...</option>
<select>
I would like to apply my class solely to this select element - changing its color to green if there is a change, and to red if it was only clicked without any modifications.
You can find the code on this link.