1
0
mirror of synced 2024-11-27 07:16:03 +03:00
select2/docs/_includes/options/dropdown/selections.html

29 lines
528 B
HTML
Raw Normal View History

2015-09-13 18:31:59 +03:00
<section>
<h2>
Can I change how selecting results works?
</h2>
<h3>
Can I select the highlighted result when the dropdown is closed?
</h3>
{% highlight js linenos %}
$('select').select2({
selectOnClose: true
});
{% endhighlight %}
2015-09-15 02:30:32 +03:00
{% include options/not-written.html %}
2015-09-13 18:31:59 +03:00
<h3>
Can I prevent the dropdown from closing when a result is selected?
</h3>
{% highlight js linenos %}
$('select').select2({
closeOnSelect: false
});
{% endhighlight %}
2015-09-15 02:30:32 +03:00
{% include options/not-written.html %}
2015-09-13 18:31:59 +03:00
</section>