I would like to copy to clipboard a value of selected option from select
list using jQuery or JavaScript.
My html:
<select id="choose-color">
<option value="red">RED</option>
<option value="green">GREEN</option>
<option value="yellow">YELLOW</option>
<option value="black">BLACK</option>
</select>
The value should be copied to clipboard when the user choose any option. I tried to use clipboard.js
plugin but it seems not working with select list.