Julan Mohajan
Julan Mohajan

Reputation: 1

How to get unselected option value of bootstrap multiselect?

There are some options selected in bootstrap multiselect. Whenever I will unselect any of those selected options, I need the value of unselected option. How can I get this value?

<select
    class="form-control bootstrap-selectpicker"
    data-live-search="true"
    data-selected-text-format="count"
    name="colors[]"
    id="colors"
    multiple
    onchange="showValue(this)">
        <option value="1" selected>Red</option>
        <option value="2" selected>Yellow</option>
        <option value="3">White</option>
</select>

Upvotes: 0

Views: 208

Answers (0)

Related Questions