Please see this jsfiddle: https://jsfiddle.net/L1tns1yh/1/
First, it doesn't retrieve proper .select2('data')
Then, clicking the button doesn't reset the options, tried different ways I've found on the internets...
Please see this jsfiddle: https://jsfiddle.net/L1tns1yh/1/
First, it doesn't retrieve proper .select2('data')
Then, clicking the button doesn't reset the options, tried different ways I've found on the internets...
You could try the following, i dont realy like this solution but it works if you create a new select2: