select2
select2 copied to clipboard
Feature request - copy data-attr's and/or classes from original select
Context
You can hide options via CSS, display: none.
But when using select2 it has no effect.
My request is to add the data-attr's so
Preview
Codebin
https://jsbin.com/sicexew/edit?html,css,js,output
In fact, I would suggest two select2 configuration options (defaulted to false if select2 dev wanted backward compatibility) of "copyOptionClasses": true|false and "copyOptionAttributes": true|false which would do exactly that!
More copy data attribute from options, but can be interesting.
Have a way to copy class too (by option)