mdelrosso / sheepit

SheepIt! Form Cloning plugin for Jquery
http://www.mdelrosso.com/sheepit/
MIT License
68 stars 44 forks source link

Bootstraps select2 plugin does not working insert the second #27

Open WebCustoms opened 10 years ago

WebCustoms commented 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...