When using Select2-Bootstrap I register the event handler with the recommended declaration
$(document).ready(function(){
$('.ctaskSelector').select2({
theme: "classic"
})
})
However if you dynamically add a Select
element to the ctaskSelector
class then the Select
element is not bound to the new entity and the select box behaves as a default select element:
I have tried using Event Delegation which captures the events okay but the Select2 behaviour and features are not available. Does anyone have some pointers as to how I can resolve this?