根据在引导程序选择/选择器上选择的选项更改更改颜色

时间:2019-12-06 11:42:01

标签: html css select drop-down-menu bootstrap-4

ive有一个类似

的选择框
<select class="form-control selectpicker">
<option value="-1" class="none">None</option>
<option value="0" class="quotation">Quotation</option>
<option value="1" data-icon="fa" class="job">Job</option>
<option value="2" data-icon="fa" class="invoiced">Invoiced</option>
<option value="3" data-icon="fa" class="dormant">Dormant</option>
<option value="4" data-icon="fa" class="closed-pending-pon">Closed Pending PON</option>
<option value="5" data-icon="fa" class="on-approval">On Approval</option>
<option value="6" data-icon="fa" class="on-hold">On Hold</option>
<option value="7" data-icon="fa" class="complete">Complete</option>
</select>

当我将其设置为引导选择时,我不知道如何根据所选值更改选择(下拉切换)的颜色?

0 个答案:

没有答案