Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
select2 4.0 - simply way to clone select #2928
In case of 3.5.x the best way to clone select2 is $('.select2').destroy(); and then clone and $('.select2').select2();
Im using select2 sometimes ~40 times on single page and I have to use clone.. In that case destroy all and cloning is not fast..
So maybe there will be a simplest way to clone select2 (4.0) - preserving options and selected item?
I have the same issue with select2 version 2
After clone I will get tow selection one can select another one can not select.