Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

How to remove an option when choosing another option in Choices.js

$
0
0

I need that when choosing different options, an option from the selection menu removes another - a special option. Value and Label are different for everyone. How to do it in Choices.js?

Sandbox: https://codepen.io/CryNet/pen/GRRQaGN

<form>
    <select id="select" multiple>
        <option value="foo">foo</option>
        <option value="bar1">bar1</option>
        <option value="bar2">bar2</option>
        <option value="bar3">bar3</option>
    </select>
</form>

Viewing all articles
Browse latest Browse all 67441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>