Can I change how selecting results works?

Can I select the highlighted result when the dropdown is closed?

{% highlight js linenos %} $('select').select2({ selectOnClose: true }); {% endhighlight %} {% include options/not-written.html %}

Can I prevent the dropdown from closing when a result is selected?

{% highlight js linenos %} $('select').select2({ closeOnSelect: false }); {% endhighlight %} {% include options/not-written.html %}