I have set up a JSFiddle to demonstrate my issue.
I have changed the way I am cloning to make it more universal, so I dont need to reuse code for different tables. Normally, for the select2 element, I would do something like this
$(".campaignType", $tr).select2({
tags: true
});
Which means I do not need to destroy it. However, in this instance, it does not seem to work. As you can see in the fiddle, when a row is added, the select on the second row does not function. It seems to be create two spans.
Is there any way I can get this working?
Thanks