Skip to content
Advertisement

Tag: jquery-select2

Get Id From AJAX Response And Use The Id For Select2

I write HTML code in controller And then in view, I am trying to get rolesForEdit id and use it for select2. It doesn’t work with this way. Any solution? Answer Your server return json as response so add dataType: ‘json’ to your ajax call. Then , append data return to your dataUserElement i.e : data.html and finally intialize your

select2 does not display correctly (Using cdn)

I’m trying to complete my website with some java’s plugin, I’m on Symfony 4 and I use the CDN bootstrap twitter. When I put the select2 plugin into the templates all is working properly, the select2 plugin does apply correctly. However I don’t want to load select2 directly from the templates I want to run it from app.js but it

Advertisement