Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstraps select2 plugin does not working insert the second #27

Open
WebCustoms opened this issue Jan 16, 2014 · 0 comments
Open

Bootstraps select2 plugin does not working insert the second #27

WebCustoms opened this issue Jan 16, 2014 · 0 comments

Comments

@WebCustoms
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant