Can I change how the dropdown is placed?

{% include options/not-written.html %}
$('select').select2({
  dropdownParent: $('#my_amazing_modal')
});
{% include options/not-written.html %}

I'm using a Bootstrap modal and I can't use the search box

{% include options/not-written.html %}

I'm using jQuery UI and I can't use the search box

{% include options/not-written.html %}