I ran into a problem. How can I enable disabled inputs if I have selected multiple items in select tag and disable it again when I removed the selection?
<div class="form-group mb-3">
<select class="selectpicker show-tick decore" name="state" id="state" multiple>
<option value="one">one</option>
<option value="two">two</option>
</select>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">
<i class="fas fa-child"></i>
</span>
</div>
<input type="text" name="first" id="first" class="form-control" placeholder="first" aria-label="first" aria-describedby="basic-addon1" disabled />
</div>
<input type="text" name="second" id="second" class="form-control" placeholder="second" aria-label="second" aria-describedby="basic-addon1" disabled />
</div>