Open WebCustoms opened 10 years ago
Hi,
I use the bootstrap plugin select2. It works but only for the first element. For the other then get the following error message:
Uncaught TypeError: Can not call method 'replace' of undefined.
I Initiated it in the afterAdd callback function.
afterAdd: function(source, newForm) { selectedMember = newForm.find('select'); $(selectedMember).select2({ allowClear: true }); }
Thanks for response...
Hi,
I use the bootstrap plugin select2. It works but only for the first element. For the other then get the following error message:
Uncaught TypeError: Can not call method 'replace' of undefined.
I Initiated it in the afterAdd callback function.
afterAdd: function(source, newForm) { selectedMember = newForm.find('select'); $(selectedMember).select2({ allowClear: true }); }
Thanks for response...