Answer the question
In order to leave comments, you need to log in
How to select color depending on select select?
Hello. I don't know how to describe it normally, but actually there is:
<div class="form-group">
<label for="items">Товар:</label>
<select id="items" name='items' class="form-control">
<option value="" class="form-control1"></option>
<option value="Товар1" class="form-control1">Товар1</option>
<option value="Товар2" class="form-control1">Товар2</option>
<option value="Товар3" class="form-control1">Товар3</option>
</select>
</div>
</div>
.form-control{
background-color: #ffffff!important;
}
.form-control1{
background-color: red!important;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question